DotNetNuke/.NET Ajax 重定向问题

发布于 2024-09-10 05:18:00 字数 442 浏览 3 评论 0原文

我正在开发一个 DotNetNuke 站点,该站点同时具有临时服务器和生产服务器。现在的问题是特定的 NB_Store 菜单,但我相信实际上是整个网站的问题。

在生产中,单击产品管理中的编辑链接效果很好。似乎单击编辑按钮会将 AJAX post 请求发送回站点,该请求返回一些重定向指令,然后浏览器进行相应的重定向。

然而,在登台服务器上,重定向不是发送回重定向指令,而是作为 302 重定向进行处理,并且浏览器尝试将整个重定向页面解释为 JavaScript。这使我无法实际访问我需要访问的页面!

我知道的两个服务器之间的唯一区别是我们已将舞台上的路径更新为新域(stage.xxx.com,而不是原始的 www.xxx.com/subdir/dnn)。我之前没有特别尝试过使用这个管理菜单,所以我不知道更改路径是否可以做到这一点,或者它是否已经损坏。

我可以尝试做什么来解决这个问题?我开始缺乏想法了!

I'm working on a DotNetNuke site which has both a staging and production server. The issue right now is with a specific NB_Store menu, but I believe is actually an issue throughout the site.

On production, clicking the edit links in the product admin works fine. It appears that clicking the edit buttons sends an AJAX post request back to the site, which returns some redirect instructions, and then the browser redirects accordingly.

On the staging server however, instead of sending back redirect instructions, the redirect is handled as a 302 redirect, and the browser tries interpreting the entire redirected page as javascript. This stops me from actually getting to the page I need to go to!

The only differences between the two server I am aware of is we've updated the paths on stage to be a new domain (stage.xxx.com as opposed to the original www.xxx.com/subdir/dnn). I haven't tried using this admin menu in particular before so I don't know if changing the paths did it, or if it was already broken.

What can I try to fix this? I'm starting to run low on ideas!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

沫雨熙 2024-09-17 05:18:00

首先,尝试使用 Fiddler 跟踪完整的请求-答复序列。
可能存在中间重定向。

当您访问 stage.xxx.com 时,浏览器中显示的确切网址是什么?
如果它不仅是 stage.xxx.com,而且是 stage.xxx.com/Default.aspx?tabid=X,则说明某些原因导致了重定向。

我记得有一个案例,从网站登录页面重定向到特定页面,而不是仅仅在网站设置中将该页面定义为主页。当 ASP.NET(扩展名 .aspx、.ashx)处理的除 Default.aspx 之外的所有 URL 都被重定向时,这会导致神秘的 AJAX 请求问题。

First, try to track the full request-reply sequence with Fiddler.
There may be intermediary redirects.

When you go to stage.xxx.com, what is the exact url that shows up in the browser?
If it is not just stage.xxx.com, but stage.xxx.com/Default.aspx?tabid=X, then something is causing a redirect.

I remember one case where there was a redirect from the site landing page to a particular page, instead of just defining this page as a home page in site settings. This caused mysterious AJAX request issues when all urls handled by ASP.NET (extensions .aspx, .ashx) except Default.aspx were redirected.

诠释孤独 2024-09-17 05:18:00

这最终成为应用程序池继承垃圾的问题

It ended up being an issue with application pool inheritance crap

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文