Skip to content

Commit 10ec5cc

Browse files
committed
fixup! fix(@angular/ssr): prevent redirect loop with encoded query parameters
1 parent f75a209 commit 10ec5cc

File tree

1 file changed

+2
-2
lines changed
  • packages/angular/ssr/src/utils

1 file changed

+2
-2
lines changed

packages/angular/ssr/src/utils/ng.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
} from '@angular/platform-server';
2424
import { ActivatedRoute, Router } from '@angular/router';
2525
import { Console } from '../console';
26-
import { stripIndexHtmlFromURL, stripTrailingSlash } from './url';
26+
import { stripIndexHtmlFromURL } from './url';
2727

2828
/**
2929
* Represents the bootstrap mechanism for an Angular application.
@@ -110,7 +110,7 @@ export async function renderAngular(
110110
} else if (lastSuccessfulNavigation) {
111111
hasNavigationError = false;
112112
const { pathname, search, hash } = envInjector.get(PlatformLocation);
113-
const finalUrl = [stripTrailingSlash(pathname), search, hash].join('');
113+
const finalUrl = [pathname, search, hash].join('');
114114
const finalUrlHref = decodeURIComponent(new URL(finalUrl, urlToRender.origin).href);
115115
const urlToRenderHref = decodeURIComponent(urlToRender.href);
116116

0 commit comments

Comments
 (0)