Confirmed SEF is not working properly?

  • Dmitrijs Rekuns
  • Onderwerp Auteur
  • Offline
Lees meer
3 weken 1 dag geleden #3426 door Dmitrijs Rekuns
SEF is not working properly? werd gestart door 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

Graag Inloggen deelnemen aan het gesprek.

Lees meer
3 weken 1 dag geleden #3428 door Ruud van Lent
Beantwoord door Ruud van Lent in 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.

Graag Inloggen deelnemen aan het gesprek.

Lees meer
3 weken 3 uren geleden #3434 door Ruud van Lent
Beantwoord door Ruud van Lent in 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.

Graag Inloggen deelnemen aan het gesprek.

Lees meer
2 weken 6 dagen geleden #3435 door Ruud van Lent
Beantwoord door Ruud van Lent in 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.

Graag Inloggen deelnemen aan het gesprek.