Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当修改了Home/Index的路由地址,Login的Redirect地址错误 #597

Open
helloJeeee opened this issue Mar 7, 2023 · 1 comment
Open
Labels
bug Something isn't working

Comments

@helloJeeee
Copy link

在登录只有Login的属性Redirect会重新设置跳转的Url

public string Redirect
{
get
{
var rv = _redirect;
if (string.IsNullOrEmpty(rv) == false)
{
if (rv.StartsWith("/#") == false)
{
rv = "/#" + rv;
}
if(rv.Split("#/").Length > 2)
{
int index = rv.LastIndexOf("#/");
rv = rv.Substring(0, index);
}
}
return rv;
}
set { _redirect = value; }
}

但是如果我给Home/Index Contrller设置了route之后,这一段代码就会有异常,他会跳转到 {host}/#{route}/ 的地址

@helloJeeee helloJeeee added the bug Something isn't working label Mar 7, 2023
@liuliang-wt
Copy link
Collaborator

是,你这里也得适当修改

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants