gpt4 book ai didi

c# - 传递带有哈希值的 URL 以进行重定向

转载 作者:行者123 更新时间:2023-11-30 14:35:28 25 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
How to get Url Hash (#) from server side

我在从变量中获取散列 值时遇到了一些问题。

我正在使用 AccountController 中的默认操作

[HttpPost]
public ActionResult LogOn(LogOnModel model, string returnUrl) { ... }

但如果我将此链接传递给:

http://localhost:1357/none/Account/LogOn?returnUrl=a/b/c#day-22

我永远无法捕捉到 #day-22

下面是登录后的断点:

enter image description here

我从来没有得到 HttpContext.Request.Url 对象的哈希值。

What can I do to forward the user to the correct URL with the hash part?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com