TYPO3 11.5 更改后的 slug 末尾导致错误的重定向。

huangapple go评论39阅读模式
英文:

TYPO3 11.5 changed slug ends in wrong redirect

问题

TYPO3 11.5.26.

我在页面树中有两个名为“test”的页面:

  1. 页面类型=文件夹 id=34 别名=test
  2. 页面类型=标准 id=10 别名=test1

然后我将 1 的别名更改为 'test-folder',将 2 的别名更改为 'test'。

  1. 页面类型=文件夹 id=34 别名=test-folder
  2. 页面类型=标准 id=10 别名=test

第二个页面的属性显示在别名字段中 https//my-typo3-site.com/test。但当我在浏览器地址栏中输入 https//my-typo3-site.com/test 时,它立即重定向到 https//my-typo3-site.com/test-folder/,然后出现404页面找不到错误。但test-folder是一个文件夹页面,不应该用于前端。

如何清除别名缓存,以便TYPO3前端也会像后端一样显示别名?
或者为什么子页面test会重定向到test-folder?

英文:

TYPO3 11.5.26.

I have had two pages called "test" in the page tree:

  1. page type=folder id=34 slug=test
  2. page type=standard id=10 slug=test1

Then I did rename the slug for 1 into 'test-folder' and the slug for 2 into 'test'.

  1. page type=folder id=34 slug=test-folder
  2. page type=standard id=10 slug=test

The page properties for 2 show well https//my-typo3-site.com/test in the slug field. But when I enter https//my-typo3-site.com/test into the browser tab url then it is immediately redirected into https//my-typo3-site.com/test-folder/ and I get a 404 page not found error. But the test-folder is a folder page and is not meant to be used for the front end.

How can I clear the slug cache in order also the TYPO3 frontend will show me the slugs as they are already in the backend?
Or how does it come that the subpage test is redirected into test-folder?

答案1

得分: 0

你似乎已经启用了重定向扩展。您可以在后台模块中输入它并删除一些或全部重定向。

通常我喜欢完全禁用/卸载重定向扩展,以防止发生这些情况。

当安装了“重定向”扩展时, slugs 或 URL 可能会出现奇怪的情况。您的情况很简单,但如果 slug 多次更改,则找到重定向原因可能会很繁琐。

使用“重定向”扩展对于SEO和可用性方面可能非常有用,但编辑人员必须意识到它并知道如何使用它。

英文:

It seems you've the redirects extension running. You can enter it in the backend module and delete some or all redirects there.
I usually like to disable / uninstall the redirects extension completely, so those things can't happen.

Strange things with slugs respectively URLs can happen when the extension "redirects" is installed. Your case is a simple one, but finding the reason for redirecting can be quite cumbersome if a slug is changed several times.

Using the extension "redirects" can be quite useful for SEO and usability aspects but the editor has to be aware of it and know how to use it.

huangapple
  • 本文由 发表于 2023年4月19日 16:51:37
  • 转载请务必保留本文链接:https://go.coder-hub.com/76052522.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定