Bug #63804
closedtypolink: "linkAccessRestrictedPages" is ignored when config.typolinkLinkAccessRestrictedPages is set
100%
Description
This Bug is already reported for the Typo3 4.6 Version. (#33059)
The typolink-function ignores the property "linkAccessRestrictedPages" when config.typolinkLinkAccessRestrictedPages is set.
For the typolink-property "linkAccessRestrictedPages" TSRef says:
"If set, typolinks pointing to access restricted pages will still link to the page even though the page cannot be accessed." With the global config property "typolinkLinkAccessRestrictedPages" you can influence the generated link on pages which can not be accessed at the moment. E.g. linking the loginform instead. But this should not be done if "linkAccessRestrictedPages" is set for a typolink.
For the moment it is not possible to force the generation of a link to an access-restricted page if the property "config.typolinkLinkAccessRestrictedPages". But this is needed for example for a redirect-url which points to an access-restricted page after login.
Updated by Steffen Müller over 9 years ago
- Project changed from 1865 to TYPO3 Core
- Category deleted (
User interface) - Is Regression set to No
Moved to Core tracker.
Updated by Frederic Gaus over 9 years ago
- Status changed from New to Accepted
Steps to reproduce:
Step1: Create an access restricted page
Step2: Create a normal page with a felogin on it. Configure felogin to redirect to the access restricted page ( of step 1) after login
Step3: Set this typoscript config
config.typolinkLinkAccessRestrictedPages = {$loginFormPIDOfStep1} config.typolinkLinkAccessRestrictedPages_addParams = &return_url=###RETURN_URL###&pageId=###PAGE_ID###
You won't be redirected to your access restricted page but to the page {$loginFormPID}. This is because the link is generated by "linkAccessRestrictedPages" by the felogin ext but this option is ignored if config.typolinkLinkAccessRestrictedPages is set.
Updated by Gerrit Code Review over 9 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35908
Updated by Gerrit Code Review over 9 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35908
Updated by Gerrit Code Review over 9 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35908
Updated by Gerrit Code Review over 9 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35908
Updated by Gerrit Code Review over 9 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35908
Updated by Frederic Gaus over 9 years ago
For testing purposes a typoscript similar to this one could help:
config.admPanel = 1 config.typolinkLinkAccessRestrictedPages = 5 config.typolinkLinkAccessRestrictedPages_addParams = &return_url=###RETURN_URL###&pageId=###PAGE_ID### temp.linkTest = COA temp.linkTest { 10 = COA 10 { 10 = TEXT 10.value = test1 10.typolink.parameter = 11 10.typolink.returnLast = url 15 = TEXT 15.value = <br> 20 = TEXT 20.value = test2 20.typolink.parameter = 11 20.typolink.linkAccessRestrictedPages = 5 20.typolink.returnLast = url } } page = PAGE page.10 < styles.content.get page.5 < temp.linkTest
Updated by Gerrit Code Review over 9 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35908
Updated by Gerrit Code Review over 9 years ago
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35923
Updated by Frederic Gaus over 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 90287bd48295ab57ef2dd78e7f042d99b002f79d.