#54867pagetype shortcut check for internal loop
Description
Would be nice to prevent an internal error when setting up an shortcut-page that points to itself. This might avoid some ugly error throwout and make it more obvious for normal editors. Simple solution/suggestion: make it impossible to select the page you are currently working on.
Reviews 4
- TYPO3_8-7 58613[BUGFIX] pages.content_from_pid suggest wizard should not suggest itself
- main 58597[BUGFIX] pages.content_from_pid suggest wizard should not suggest itself
- TYPO3_8-7 58428[BUGFIX] pages.shortcut suggest wizard should not suggest itself
- main 58423[BUGFIX] pages.shortcut suggest wizard should not suggest itself
Related issues 2
History 13
-
Benni Mack changed project id category 10/20/16, 15:44
-
Riccardo De Contardi changed target version 04/25/17, 16:18
-
Josef Glatz changed Related to #86412 09/28/18, 06:28
-
Riccardo De Contardi commented 10/07/18, 23:08
-
Josef Glatz commented 10/08/18, 06:39
I could imagine:
A) Show an error via MessageQueue if the actual edited page record links to it self. This informs an editor
B) what about extending the Record Browser with an additional argument where the value could be N tablename_<uid> like <code>pages_42</code>? Those ids are then disabled in the record browser (greyed out for example with a nice title attribute)</uid>
-
Josef Glatz changed removed the assignee target version 10/08/18, 07:11
-
Josef Glatz changed status
NewAccepted 10/08/18, 07:12 -
Josef Glatz changed Related to #86600 10/09/18, 06:06
-
Markus Klein commented 10/09/18, 14:04
I’d go with b)
-
Riccardo De Contardi commented 03/14/20, 11:45
I put here another idea: how about handling this with the link validator? Would it be a good idea or better not?
-
Susanne Moog changed category 03/25/20, 13:45
-
Benni Mack commented and changed status
AcceptedNeeds Feedback 03/25/25, 13:54We already have a check for a loop detection when resolving the page.
On the other hand, I’m not very keen on fixing things by “not showing the link to select”. I had this issue: Editor creates shortcut Page A to Page B, which is valid, then changes the page type to something else, then changes the doktype of Page b to have a shortcut to Page A again. You cannot prevent this at the time of setting this, but more during the time of resolving it.
The only option I see is: Have a warning in the page module when having a loop.
Linkvalidator will already report this IMHO anyways, as the link will never be able to be resolved.
-
Benni Mack commented and changed status
Needs FeedbackClosed 10/23/26, 08:16Closing this due to lack of feedback. If you want to continue, feel free to ping me or create a new issue.
Partially solved with #86412 – the suggest wizard skips the page itself; but it is still possible to select the same shortcut page as shortcut and save the record without errors or warnings.