Confirmed SEF is not working properly?

More
3 weeks 1 day ago #3426 by Dmitrijs Rekuns
SEF is not working properly? was created by Dmitrijs Rekuns
Hi Ruud!

We have a menu item Products to `index.php?option=com_ochsubscriptions&view=products`. Does it work for other views?
For example we are using `Route::_('index.php?option=com_ochsubscriptions&view=product&id=' . (int) $productId)` outside of the component and the link still have this `component/ochsubscriptions/` inside.

Does it mean that we need to create a menu items for all products?

Kind regards,
Dmitrijs

Please Log in to join the conversation.

More
3 weeks 1 day ago #3428 by Ruud van Lent
Replied by Ruud van Lent on topic SEF is not working properly?
Good morning Dmitrijs,

when you have a products menu where you left the products empty (so display all), then the single products pages are part of that SEF URL.

so e.g. on my site I have a products page joomla-extensions.

when I displaye the product page for e.g. ochresponsiveimages, the the link to this product will be:

./joomla-extensions/product/ochresponsiveimages

so it will add product + alias for the product.

Currently not online (will be tomorrow), but the htmlhelper where these URL's are created will show you the route::_ syntax.

fyi, I always create separate product pages (hidden menu) as that will give me maximum control over the sef url, the menu, the (in my case) opengraph settings, etc.

Please Log in to join the conversation.

More
3 weeks 3 hours ago #3434 by Ruud van Lent
Replied by Ruud van Lent on topic SEF is not working properly?
Hi Dmitrijs,
I can reproduce when e.g. in an article.
Will put this on the list as this is no 'small' fix because it involves the router which basically touches everything front-end.

workaround is to create (hidden) menu items for the product as that will correctly return the SEF url.

will keep you posted here.
thanks for bringing this to my attention!

regards,
Ruud.

Please Log in to join the conversation.

More
2 weeks 6 days ago #3435 by Ruud van Lent
Replied by Ruud van Lent on topic SEF is not working properly?
ok, so that was quicker then expected.
wrote a fix for this. did some testing im my dev environment and looking good.
Currently rolling out updates of all my extensions pending the Joomla 6.1 release tomorrow. When that is done I will test in my production environment.

If you want I can give you a test version as well, might save you the trouble of creating the menu items for the singel products (and files).

let me know if you want that.

regards,
Ruud.

Please Log in to join the conversation.