#1054 Posted in ‘Route 66’

Latest post by rima elektronik on Thursday, 08 June 2023 19:59 EEST

rima elektronik
 Hello,

Is there a way to make route 66 to get url structure from real categories and product names section instead of slug.
I have to many secand level categories and product dublications with some names.

I have already using following settings:

product: {categoryPath}/{productAlias}
category: {categoryPath}

But urls are:
car/black
truck/black-1

I want to mak them like:
car/black
truck/black

Thank you.

Lefteris Kavadas
Hi,

Your setup seems correct. According to the example URLs you provided I guess that you have a product with product alias "black-1". Virtuemart does not allow duplicate alias, so if you don't want to change your product names, you will have to add the product ID or the product SKU to the URL patterns.
I mean to try something like the following for product URL patterns:
{categoryPath}/{productId}/{productAlias}


Please let me know if that solves the issue.

Regards

rima elektronik
Hi,
You are rigth, i have some sub categories with some names. I have about 25.000 products so about half of the indexed urls will goes to 404.
My live site still on joomla 3 with artio sef. It is directly convert categories names not alias so i can use urls as my example.
I wonder if it is possible for route 66 can do some structure?

Thank you.

Lefteris Kavadas
Hi,

Route 66 does not support category names, only aliases. For your case I suggest to add the productId to your URL pattern so you avoid collisions. Alternatively, you can edit the aliased of the categories and make them look as you wish.
It's the same as using category names. If you have duplicate category names you will also have conflicts.

Regards

rima elektronik
Thank you.

Note: An active subscription is required in order to get support for our paid extensions. For our free extensions, if you don't have an account, register and then submit your support request.  In case you just want to ask a question, you can also use the contact form .

Firecoders
Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review