Breadcrumb corrupted for CP menu item

  • Martin7
  • Autore della discussione
  • Offline
  • Anziano Utente
  • Anziano Utente
Di più
8 Anni 1 Mese fa #2539 da Martin7
Breadcrumb corrupted for CP menu item è stato creato da Martin7
hi Andrea,

I have found that Breadcrumb links are corrupted for CP menu items.

Take a look at this page:

www.domowe-wypieki.pl/przepisy/ciasta/torty/klasyczne

the level "Torty" in the breadcrumb is corrupted. The link generated in the breadcrumb is like this:
www.domowe-wypieki.pl/przepisy/ciasta/to...log&bind_to_category [0]=content:43

Why this link is not just an alias of the CP menu item ? What is this content concatenated after the alias?

It would be correct just without this additional stuff "/36?layout=gblog&bind_to_category[0]=content:43". The link in the breadcumb should be the same as the link (alias) in the menu item, so in my case just the first part of the link would be correct " www.domowe-wypieki.pl/przepisy/ciasta/torty "

Could you please investigate and find a solution for this?

thanks
Martin

Si prega Accesso o Crea un account a partecipare alla conversazione.

  • Martin7
  • Autore della discussione
  • Offline
  • Anziano Utente
  • Anziano Utente
Di più
7 Anni 2 Mesi fa - 7 Anni 2 Mesi fa #2597 da Martin7
Risposta da Martin7 al topic Breadcrumb corrupted for CP menu item
hi Andrea,

just downloaded and installed the latest version. Thanks for all improvements done :)

I would like you to ask to check this old problem which is still existing. The breadcrumb is still corrupted for me.

Example: I have menu item which selects all articles by one tag in one category:
www.kochen-mit-spass.de/rezepte/vorspeis...schenmahlzeiten/warm

If you click on the last part of the crumb-path you can see that is not correct, it is not valid link and does not select anything.

In my opinion the last part of the crumb-path in case of menu item should be just the current url of this menu item. No need to generate any complex CP specific URL.

Can this be solved somehow?

thanks in advance
Martin
Ultima Modifica 7 Anni 2 Mesi fa da Martin7.

Si prega Accesso o Crea un account a partecipare alla conversazione.

Di più
7 Anni 2 Mesi fa #2598 da andrea_4g
Risposta da andrea_4g al topic Breadcrumb corrupted for CP menu item
Breadcrumbs urls are auto-generated by Joomla. CP does not actively intervene in the process.

Note:
I discovered that the "offending" part of the url is the "1" after "/warm/".
Code:
http://www.kochen-mit-spass.de/rezepte/vorspeisen-zwischenmahlzeiten/warm/1?layout=gblog&bind_to_category[0]=content:31
I have no idea where Joomla is pulling that "1" out from.

Si prega Accesso o Crea un account a partecipare alla conversazione.

  • Martin7
  • Autore della discussione
  • Offline
  • Anziano Utente
  • Anziano Utente
Di più
6 Anni 11 Mesi fa #2655 da Martin7
Risposta da Martin7 al topic Breadcrumb corrupted for CP menu item
I do not know Joomla framework. I have did some debugging today I have found the that Joomla tries to translate the CP menu item url using the JRoute class in the helper.php / mod_breadcrumb.

And it seems that translation is not done correctly, for example the link

index.php?option=com_customproperties&view=search&tagId=1&bind_to_category[0]=content:31

which has alias:
/rezepte/vorspeisen-zwischenmahlzeiten/warm

is translated to:
/rezepte/vorspeisen-zwischenmahlzeiten/warm/1?layout=gblog&bind_to_category[0]=content:31

And I have googled a bit and found out that Joomla required every component to provide a router.php with class following the a given pattern, see the Joomla spec:

docs.joomla.org/J3.x:Supporting_SEF_URLs_in_your_component

I have checked the router.php of other extensions I have and all of them follow this convention (**Router) and trying to resolve the SEO friendly URL accessing the Menu object from Joomla. See some example in attachment.

Maybe the problem is in this CP file ?

many thanks in advance for any investigation
Martin

As attachmen

Si prega Accesso o Crea un account a partecipare alla conversazione.

Tempo creazione pagina: 0.172 secondi