[release-11.5.9] Chore: Improve short url redirection (#111178)
Chore: Improve short url redirection (#111162)
Improve short url redirection
(cherry picked from commit 81fe57478f)
Co-authored-by: Misi <mgyongyosi@users.noreply.github.com>
This commit is contained in:
co-authored by
Misi
parent
12dc5dcaaf
commit
e10fd15eeb
+2
-4
@@ -428,10 +428,8 @@ function handleRedirectTo(): void {
|
||||
let decodedRedirectTo = decodeURIComponent(redirectTo);
|
||||
if (decodedRedirectTo.startsWith('/goto/')) {
|
||||
// In this case there should be a request to the backend
|
||||
if (config.appSubUrl && !decodedRedirectTo.startsWith(config.appSubUrl)) {
|
||||
decodedRedirectTo = config.appSubUrl + decodedRedirectTo;
|
||||
}
|
||||
window.location.replace(decodedRedirectTo);
|
||||
const urlToRedirectTo = locationUtil.assureBaseUrl(decodedRedirectTo);
|
||||
window.location.replace(urlToRedirectTo);
|
||||
return;
|
||||
}
|
||||
// Ensure that the appsuburl is stripped from the redirect to in case of a frontend redirect
|
||||
|
||||
Reference in New Issue
Block a user