|
|
@@ -29,8 +29,8 @@ export default {
|
|
|
const redirectUrlParams = new URL(redirect);
|
|
|
if (redirectUrlParams.origin === urlParams.origin) {
|
|
|
redirect = redirect.substr(urlParams.origin.length);
|
|
|
- if (redirect.startsWith('/#')) {
|
|
|
- redirect = redirect.substr(2);
|
|
|
+ if (redirect.match(/^\/.*#/)) {
|
|
|
+ redirect = redirect.substr(redirect.indexOf('#')+1);
|
|
|
}
|
|
|
} else {
|
|
|
window.location.href = redirect;
|