Issue Bug New Orphaned

#89916Shortcut to a disabled page with redirect fails

Riny van Tiggelen 12/11/19, 11:09 updated 04/21/26, 11:23

Description

When disabling a page and setting a redirect for that old url to a new/other page, the redirect works.
When setting a page shortcut to the old url, this error shows up:

Page not found: Reason: ID was not an accessible page

Which is obvious because the shortcut functionality checks the availability of the target page.
But maybe it’s wanted/expected behaviour to get redirected if there is a redirect for the page available.

To reproduce:
- Create old-page and set hidden
- Create new-page and set visible
- Create redirect from /old-page to /new-page => this works
- Create shortcut to old-page -> shortcut fails

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[BUGFIX] Shortcut to a disabled page with redirect fails Resolves: #89916 Releases: main