Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions packages/angular/ssr/src/utils/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -497,18 +497,3 @@ export function stripMatrixParams(pathname: string): string {
// This regex finds all occurrences of a semicolon followed by any characters
return pathname.includes(';') ? pathname.replace(MATRIX_PARAMS_REGEX, '') : pathname;
}

/**
* Constructs a decoded URL string from its components.
*
* This function joins the pathname (with trailing slash removed), search, and hash,
* and then decodes the result.
*
* @param pathname - The path of the URL.
* @param search - The query string of the URL (including '?').
* @param hash - The hash fragment of the URL (including '#').
* @returns The constructed and decoded URL string.
*/
export function constructUrl(pathname: string, search: string, hash: string): string {
return decodeURIComponent([stripTrailingSlash(pathname), search, hash].join(''));
}
Loading