Feature #80113
closedf:link.page option for shortcuts
100%
Description
f:link.page does not resolve shortcuts.
VHS menu viewhelper has a solution for this:
useShortcutData: Shortcut to set useShortcutTarget and useShortcutData simultaneously
useShortcutTarget: Optional param for using shortcut target instead of shortcut itself for current link
useShortcutUid: If TRUE, substitutes the link UID of a shortcut with the target page UID (and thus avoiding redirects) but does not change other data - which is done by using useShortcutData.
[[https://fluidtypo3.org/viewhelpers/vhs/master/Page/MenuViewHelper.html]]
Would it be possible to add an option like this to f:link.page also?
Updated by Riccardo De Contardi about 5 years ago
- Status changed from New to Needs Feedback
Is this issue still present on 9.5.x? I tried this short test:
1) Create a page "Test shortcut" (UID=4)
2) Create a page "Test target" (UID=5)
3) Edit the page created at point 1), change the type to "shortcut" and set the shortcut target to the page created at point 2)
4) On a Fluid Template / Partial use:
<f:link.page pageUid="4">page link </f:link.page>
Test Results:¶
the generated link is:
<a href="/test-target">page link</a>
Is this sufficient? Or a different test is required?
Updated by Anonymous almost 5 years ago
Riccardo De Contardi wrote:
Is this issue still present on 9.5.x? I tried this short test:
1) Create a page "Test shortcut" (UID=4)
2) Create a page "Test target" (UID=5)
3) Edit the page created at point 1), change the type to "shortcut" and set the shortcut target to the page created at point 2)
4) On a Fluid Template / Partial use:[...]
Test Results:¶
the generated link is:
[...]
Is this sufficient? Or a different test is required?
Did a similar test here and the generated link is not the expected one.
1) page 10 of doktype 1 with slug "foo"
2) page 20 of doktype 4 with slug "bar" and shortcut_mode=0 and shortcut=10
<f:link.page pageUid="20">Hallo</f:link.page>
Desired result:
<a href="/foo">Hallo</a>
Actual result:
<a href="/bar">Hallo</a>
TYPO3 9.5.13
In single-tree at least a 301 is done. But with multi-tree it leads to a 404.
Updated by Riccardo De Contardi almost 5 years ago
- Status changed from Needs Feedback to New
Updated by Gerrit Code Review almost 3 years ago
- Status changed from New to Under Review
Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71402
Updated by Gerrit Code Review almost 3 years ago
Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71402
Updated by Gerrit Code Review almost 3 years ago
Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71402
Updated by Gerrit Code Review almost 3 years ago
Patch set 7 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71402
Updated by Gerrit Code Review almost 3 years ago
Patch set 8 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71402
Updated by Gerrit Code Review almost 3 years ago
Patch set 9 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71402
Updated by Gerrit Code Review almost 3 years ago
Patch set 10 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71402
Updated by Gerrit Code Review almost 3 years ago
Patch set 11 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71402
Updated by Gerrit Code Review almost 3 years ago
Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72772
Updated by Benni Mack almost 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset d5c7a96384b7c7cb489fc7ede707773382290fca.
Updated by Benni Mack almost 3 years ago
- Related to Bug #96078: Shortcut Info-Message incorrect when page refers to frontend-restricted page added