TYPO3: 如果在前端登录之后,页面未找到

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

TYPO3: Page Not Found if behind Frontend Login

问题

我有一个 TYPO3 10.4 版本,启用了前端登录。子页面位于前端登录后:

TYPO3: 如果在前端登录之后,页面未找到

如果我想链接到一个子页面 domain.com/page1/page1-1/page1-1-1/
我会收到 404 错误:

页面未找到
该页面不存在或无法访问。原因:找到子部分但无法访问

在我的 TypoScript 中,我有:

config {
    typolinkLinkAccessRestrictedPages = 2450
    typolinkLinkAccessRestrictedPages_addParams = &return_url=###RETURN_URL###&pageId=###PAGE_ID###
}

根据typolinkLinkAccessRestrictedPages 的文档

如何设置我的页面以重定向到带有正确 URL 的登录表单。

英文:

I have a TYPO3 10.4 with Frontend Login enabled. Subpages are behind a FE Login:

TYPO3: 如果在前端登录之后,页面未找到

If i want to link to an subpage domain.com/page1/page1-1/page1-1-1/
I get an 404 Error:

Page Not Found
The page did not exist or was inaccessible. Reason: Subsection was found and not accessible

In my TypoScript I have:

config {
    typolinkLinkAccessRestrictedPages = 2450
    typolinkLinkAccessRestrictedPages_addParams = &return_url=###RETURN_URL###&pageId=###PAGE_ID###
}

According to the documentation about typolinkLinkAccessRestrictedPages

How can I setup my page to redirect to the login form with the right URL.

答案1

得分: 2

https://github.com/plan2net/sierrha 可以帮助你处理这部分。

英文:

This configuration is only used when you generate links. This does not handle cases which directly access the URL.
https://github.com/plan2net/sierrha can help you with that.

huangapple
  • 本文由 发表于 2023年2月14日 19:25:47
  • 转载请务必保留本文链接:https://go.coder-hub.com/75447143.html
匿名

发表评论

匿名网友

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

确定