summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaladox none <thomasmulhall410@yahoo.com>2024-04-18 18:18:59 +0000
committerPaladox none <thomasmulhall410@yahoo.com>2024-04-18 19:47:25 +0000
commit909684d640b566a16fc6aa6eb18d616391a8d878 (patch)
tree3641713072a35f69e1177005477672ccc5367308
parentefc5dbd67643d5e5dce49712621404f8f0ba09fa (diff)
Fix redirecting to login with a base url
It appears the base url wasn't being added. Release-Notes: Fix redirecting to login with a base url Change-Id: Ic1cfe2302a460f2effe098399496b45f2dd53740 (cherry picked from commit 9100b1bf22379e378ec78ffd2467de4d283dc5ed)
-rw-r--r--polygerrit-ui/app/elements/core/gr-router/gr-router.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/polygerrit-ui/app/elements/core/gr-router/gr-router.ts b/polygerrit-ui/app/elements/core/gr-router/gr-router.ts
index ad3e15ca95..30f4bf81f7 100644
--- a/polygerrit-ui/app/elements/core/gr-router/gr-router.ts
+++ b/polygerrit-ui/app/elements/core/gr-router/gr-router.ts
@@ -458,7 +458,9 @@ export class GrRouter implements Finalizable, NavigationService {
// app.
assign(
window.location,
- '/login/' + encodeURIComponent(returnUrl.substring(basePath.length))
+ `${basePath}/login/${encodeURIComponent(
+ returnUrl.substring(basePath.length)
+ )}`
);
}