简体   繁体   English

如何阻止页面重定向到上一个访问的页面?

[英]How to stop page from redirecting to the previous visited page?

The issue i have is that when i click on any page in my menu, it loads and then goes back to the previous page i visited. 我遇到的问题是,当我单击菜单中的任何页面时,它将加载,然后返回到我访问的上一页。 I contacted my hosting provider and they said there must be some code somewhere inside the website or database. 我联系了我的托管服务提供商,他们说网站或数据库内必须有一些代码。 But i know for sure i didnt put any code in there. 但是我确定我没有在其中放任何代码。 Does anyone know where i could find this code or where the problem could be? 有谁知道我在哪里可以找到此代码或问题可能在哪里?

I already tried changing the permalinks and all, but this didnt work. 我已经尝试过更改永久链接和所有链接,但这没有用。

I expect the page to just normally load into my browser window without redirecting to the previous page. 我希望该页面仅能正常加载到我的浏览器窗口中,而无需重定向到上一页。

URL is: http://www.vandeheg.nl/ 网址是: http//www.vandeheg.nl/

From what I can see this is a problem with the JavaScript on the site, as with JS disabled I can access all the pages without issue. 从我看到的结果看,这是网站上的JavaScript出现问题,因为禁用JS后,我可以毫无问题地访问所有页面。

I'd recommend trying with all plugins deactivated, and then if that doesn't solve the issue have a look through your theme code for anything like window.location that might imply a forced JS redirect. 我建议尝试停用所有插件,然后,如果仍不能解决问题,请查看您的主题代码,查找window.location可能暗示强制JS重定向的内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM