页面中包含的所有链接删除了Laravel网站中的HTTP或HTTP

发布于 2025-01-26 02:53:50 字数 1183 浏览 2 评论 0原文

以下是/routes/web.php的文件,并声明3个路由如下: web.php代码映像

  1. xx.com/contact
  2. xx.com/ooo/contact
  3. xx.com/vendor/contact

问题在路由中xx.com/contactxx.com/oo/contact页面中包含的所有链接都没有协议(HTTP或HTTPS),请在下面找到屏幕截图。 <

​COM/OOO/联系人)也没有协议。 输出图像

但是,在前缀/vendor/vendor/code>()中xx.com/vendor/contact)所有页面链接均为协议(http或https),请在下面找到屏幕截图。 输出图像

请帮助停止删除协议的解决方案,因为我希望整个网站都希望整个站点与协议(HTTP或HTTPS)的页面中包含的链接。

谢谢你!

-----------添加-------

对于布局刀片,我删除了所有内容(JS和CSS)刚刚编写了HTTP和HTTPS,用于测试,以

​。

​://i.sstatic.net/4udqe.png“ rel =“ nofollow noreferrer”>输出图像

但是,使用前缀/vendor/xx.com/vendor /testing)工作正常,它与协议(http或https)一起使用 A>

请帮忙...

Below is the file of /routes/web.php and declared 3 routes as following: web.php code image

  1. xx.com/contact
  2. xx.com/ooo/contact
  3. xx.com/vendor/contact

The problem is in the route xx.com/contact and xx.com/ooo/contact all links contained in the page are without protocol (http or https), please find the screenshot below.
output image

with prefix /ooo/ (xx.com/ooo/contact) also the same are without protocol.
output image

However in the prefix /vendor/ (xx.com/vendor/contact) all page links are with protocol (http or https), please find the screenshot below.
output image

Please help what is the solution to stop removing the protocol, as I want the whole site links contained in the page with the protocol (http or https).

Thank you!

---------ADD ON------

For the layout blade I had removed everything (js and css) just wrote http and https for testing as code image

xx.com/testing output is removed http: and https: output image

xx.com/ooo/testing output is removed http: and https: output image

However, with the prefix /vendor/ (xx.com/vendor/testing) is working fine, it is with protocol (http or https) output image

Please HELP...

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文