× Here you can get community support related to ReDJ.

Keep menu item tree integrity while redirecting

  • darkhoros
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 9 months ago - 6 years 9 months ago #6551 by darkhoros
Hi,
I have created the following menu structure like each of these items to a single article

level_1a
.. |__ level_2a
.... |__ level_3a
.... |__ level_3b
.... |__ level_3c
.. |__ level_2b
.... |__ level_3d
.... |__ level_3e
.... |__ level_3f
.. |__ level_2c
these items will generate joomla sef links like so:
www.site.com/level_1a/level_2b/level_3e

Then I made a pattern to match the above url structure to generate dynamic links to link to a 3rd party component that it self cant generate menu item links to its pages and the redirect is working perfectly as intended, the issue is:

The menu levels are never shown in the browser as joomla not detecting the actual menu level the site visitor is at, so what I am trying to do it to make joomla aware of where it is at if the link is clicked and the redirect is done.

I think what is happening here is that the redirect when done it wastes the method that joomla knows what link is click.
I need to find a way to preserve this method so when redirect is done, the menu is expanded and sub-levels are displayed.

I hope I have explained my issue clearly and that I can find any help here.
Thank you.
Regards.
Last edit: 6 years 9 months ago by darkhoros.

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #6561 by admin
Hi,
I am not really sure you will be able to get the result using redirections (i.e. ReDJ). BTW, the way Joomla knows the menu item and its level is through the Itemid, so try to pass it as query params with your redirections.

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

  • darkhoros
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 9 months ago #6568 by darkhoros
Replied by darkhoros on topic Keep menu item tree integrity while redirecting
Hi,
Thank you for your reply.
Well actually I did try to do exactly that, but if it is to work it has to be passed right after the index.php, like so
www.domain.com/index.php?Itemid=xxx
So The rest of the path I am using for a 3rd party component is not working.
And if Itemid is added to last of the url, it dose nothing.
Not sure what to do.
Thank you.

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #6579 by admin
Hi,
I don't understand when you say:

And if Itemid is added to last of the url, it dose nothing.


Query params work despite their "position" in the URL. So if this doesn't work it must be something else. If you could add some "context" it could help.

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

Time to create page: 0.153 seconds