Modern routing causing problems with upgrade to Joomla 4

For Joomla! 4.x Coding related discussions, you could also use: http://groups.google.com/group/joomla-dev-general

Moderators: ooffick, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
zoes
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Fri Dec 13, 2019 1:11 pm

Modern routing causing problems with upgrade to Joomla 4

Post by zoes » Sat Feb 18, 2023 10:54 am

Hi
When we tried to upgrade to Joomla 4 the majority of the links on our did not work - they gave 404 pages. I don't know exactly how many there are - but too many to fix by hand.

Initially I thought this was an issue with SEF routing and asked on the general forum - see viewtopic.php?f=808&t=999829#p3684438

I also raised it on Joomla StackExchange - https://joomla.stackexchange.com/questi ... 2788#32788

The answer (StackExchange) seems to be that our links (for example https://guildofenamellers.org/index.php ... ally-davis) only work with the 'Legacy' routing - which is not available in Joomla 4. I have had to revert the site to Joomla 3 as it was too broken to be useful.

My question now (given that we have to upgrade to J4 at some stage) is is there any way to make the site work? I wondered about .htaccess, also about adding hidden menus but neither of these are particularly appealing. Has anyone made the legacy router work with J4? If there is no way to make the existing site work is there some way to fix all the links?

I read this https://docs.joomla.org/J3.x:New_Routing_System and noted the last sentence:
" Developers are still discussing ideas for a migration plan to keep old URLs working to some extent."
I wondered if there was any outcome to these discussions? Apologies if I have missed it somewhere.

Thanks, Zoë

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30890
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Modern routing causing problems with upgrade to Joomla 4

Post by Per Yngve Berg » Sat Feb 18, 2023 12:01 pm

Use regex to remove the id numbers in the .htaccess file.

https://stackoverflow.com/questions/664 ... ccess-file

zoes
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Fri Dec 13, 2019 1:11 pm

Re: Modern routing causing problems with upgrade to Joomla 4

Post by zoes » Sat Feb 18, 2023 12:28 pm

Hi Per
Thanks, I have a test site set up. This URL fails:

https://membership.guildofe-test.org/in ... ally-davis

But so does this:
https://membership.guildofe-test.org/in ... ally-davis

And so does this:
https://membership.guildofe-test.org/in ... ally-davis

So, I concluded that removing the numbers (which I think I can also do through the Articles global configuration) does not help. Have I misunderstood?
Zoë


Locked

Return to “Joomla! 4.x Coding”