Commit f9004b63 authored by Soap's avatar Soap Committed by 陈帅

fix bug by logout cause path exception (#2865)

parent e876ec20
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment