0
这是在一个MVC应用程序,这是尝试重置密码时发生的MVC - JS window.location.href将代码插入URL
这里是它的调用方式。 MVC.Account.Signin引用一个MVC.js文件,该文件返回该特定操作的URL;在这种情况下“/帐号/登入/”,你可以在URL
WEBAPI.AccountAPI.FinishResetPassword(function() {
window.location.href = MVC.Account.SignIn;
d.resolve();
但它重定向到下面的网址看到..
https://localhost:44304/Account/function%20()%20%7B%20%20%20%20%20%20%20%20%20%20%20%20var%20url%20=%20%22/Account/SignIn/%22;%20%20%20%20%20%20%20%20%20%20%20%20return%20url;%20%20%20%20%20%20%20%20%7D
,我想它重定向到
https://localhost:44304/Account/SignIn
尝试“MVC.Account.SignIn()” – flapjack17