Support

Admin Tools

#27523 Difference between AT redirect and J core

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by on Saturday, 13 May 2017 17:17 CDT

jdekempenaer
Hi there,

I had to create some redirects as the result of a new site layout and structure. I started using the Joomla Core redirect component but noticed that some of my redirects were not being picked up (others are ok) when I create the same redirect in Admin Tools they DO get picked up..

This leads to the question: What is the difference between the core redirect component and the AT URL redirect function? And also would it be better to use one of the two (either/or) as using both at the same time could cause conflicts? or does that not make a difference?

The core redirect function is collecting the craziest URLs ..... even ones which have absolutely never existed in the old structure either ...

Thanks in advance for your insight/advice.

Julius

nicholas
Akeeba Staff
Manager
The core Redirect has two problems, in my opinion.

First, it acts as a 404 collector. This means that every wrong URL which leads to a 404 error will result in an unpublished redirect being created. I understand the naive reasoning behind it, but in the real world this behavior ranges from daft to dangerous. The latter because the redirections table grows out of control with any database stability issues this might carry with it. This can be disable with some obscure setting, IIRC in the redirect plugin.

Second, the way it's implemented precludes certain types of URLs which do not result in a 404. For example, if you move an article to a subcategory the old URL is still valid and does result in the article being shown, due to the broken way Joomla! routing works. However, since this does not result into a 404 error the core redirect won't let you create a redirection from that old, obsolete URL to the new. As a result search engines will pick this up as duplicate content.

I tried to argue against this back in 2010 but it was like talking to a brick wall. So I spent all of a single afternoon to roll my own...

On top of that, Admin Tools' redirection can handle redirecting from non-SEF URLs and/or redirecting URLs with query string parameters (you can choose whether to keep or throw them away). The former is simply not supported in core (since it doesn't result in a 404 error) and the latter is also not supported in core since it merely strips all query string parameters. These last two features were added as a result of listening to user feedback. People made their case for such features, I saw a valid use case, I implemented them.

Overall, Admin Tools' Redirect URL feature is how it should be done, integrating user feedback. Joomla's Redirect component is a demonstration of how a developer who's never built a site and doesn't listen to his users would build a failed pile of warm, stinky, cow manure.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

jdekempenaer
Well, Goodmorning to you too ;)

As always, your answers are enlightening but this one made me smile behind the laptop this morning ;) As a matter of fact ROTFL ....

I know what to do .... Thx a bunch as usual.

Julius

nicholas
Akeeba Staff
Manager
You're welcome :)

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!