-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redirect legacy routes to modern routes #2
Comments
Did you check if the URLs even change? The new router in general only has different URLs to the old one when the URL points to a category or article at least 2 levels further up from the category linked in the menu item. 90% of all sites should see no difference. For the other sites I'm looking into creating some code that parses the old URLs and then redirects to the new URL. But that will still take some time. |
I have a website with Joomla and Virtuemart and I had to change nothing except of telling Virtuemart to use the full category path. So far, no problem with the new router. |
After some testing I also use your new router with my live Joomla 3.6.5/VirtueMart shop. Runs just fine without any issues. Didn't notice any change in the urls after installing jlrouter.zip and setting all options to enabled. Many thanks! |
@Hackwar , |
The URLs generated by this new router are 90% backwards compatible. The only URLs not compatible with this are URLs that are more than one child-category deep from a menu item. To give you an example, old URLs would look something like this: /menu-item/23-category-1/category-2/42-article-alias and the new URLs would be /menu-item/12-category-1/23-category-2/42-article-alias There is no list of URLs that this router produces, since these are all created dynamically. |
@Hackwar So the compatibility of URLs in either 3.6.5 3.7 3.8 or version 4.0 will always continue to depend on whether we cast from a menu item. But after 10 years with Joomla as it is possible we still depend on a menu item to be able to route a URL or something in Joomla and that does not fail anything. The problem here is that it is not only that the router generates the URLs correctly, the problem is basically the dependency of the menu, since we will always have to create for example: 1000 tag from the Joomla tag component and to correctly rotate we will have to create 1000 items in an invisible menu. This is still crazy for any administrator of a Joomla site. In reference to there is no list of URLs. But the router creates the URLs dynamically and does not generate duplicate or unwanted URLs even though these URLs are not linked in any menu or published in the Joomla site ?. |
You don't have to create "a thousand menu items for a thousand tags". One menu item that links to the tags view is enough. Resulting in domain.tld// The router does not generate duplicate URLs and as long as you configure your site correctly (creating menu items for the right things) you will not have unwanted URLs. |
@Hackwar It will not be necessary in the case that a user needs to only bind all tags within a linked URL from a menu item. But if a user needs to create a URL for each tag, he has to go through creating an invisible menu with a parent element and the rest of the tags that are children of this item. |
@Hackwar In addition to what I say, if you create a tag without a link from a menu item you can only edit the URL but still have the ID before the URL, also not depending on a menu you can not have, for example: Inside the module "Breadcrumbs" or assign modules to this label just like we can do when the label is linked from a menu item. |
Is there a recommended strategy to redirect legacy routes to modern ones?
The site I'm working with has 1000 articles which are crawled by google and linked by 3p sites.
I have had to change most URLs some time ago on site refresh and I'd prefer not to do it again.
The text was updated successfully, but these errors were encountered: