? No Code Attached Yet
avatar Scrabble96
Scrabble96
27 Feb 2023

Is your feature request related to a problem? Please describe.

When a menu item is scheduled to be unpublished it could then produce 404 errors.

Describe the solution you'd like

Allow scheduling of 301 redirects so that when a menu item is unpublished the page(s) on that item are redirected elsewhere instead of to the error page.

Additional context

avatar Scrabble96 Scrabble96 - open - 27 Feb 2023
avatar joomla-cms-bot joomla-cms-bot - change - 27 Feb 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 27 Feb 2023
avatar Quy Quy - change - 27 Feb 2023
Labels Added: ?
avatar Quy Quy - labeled - 27 Feb 2023
avatar joomdonation
joomdonation - comment - 28 Feb 2023

Technical, Joomla is a menu base routing system. It relies on published menu items to find the matching component, execute it and returns the response. Supporting this will require loading unpublished menu items into memory for each request and change how Joomla core routing system works, so it will:

  • Slow down / de-performance the system
  • Could cause many potential breaks

From what I see, if this is needed, this should be the job of a third party plugin or the error page of your template. It could catch the 404 error, find the matching unpublished menu item and perform the redirection. It is not something I see that could/should be implemented in Joomla! core.

avatar brianteeman
brianteeman - comment - 28 Feb 2023

In addition you can use the redirect manager (admittedly without the scheduling) to issue a 301
This should be closed for the reasons stated by @joomdonation

avatar joomdonation joomdonation - change - 28 Feb 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-02-28 07:22:57
Closed_By joomdonation
avatar joomdonation
joomdonation - comment - 28 Feb 2023

Closing for the reasons explained above.

avatar joomdonation joomdonation - close - 28 Feb 2023

Add a Comment

Login with GitHub to post a comment