1

I am working on Tridion 2013 SP1, and navigation is based on Structure Groups and Pages. We have a Structure Group defined under Root and currently the page URL is displaying according to that. As per the requirement, we want the page URL at the root level for one particular structure group.

Current page url: www.abc.com/product/index.html, www.abc.com/product/prd1/index.html

Expected page url: www.abc.com/index.html, www.abc.com/prd1/index.html

We want to eliminate the Structure Group directory of the immediate Root.

0

Are you using DXA's OOTB navigation or do you have a custom solution for generating the navigation? Furthermore, are we just talking navigation here, or do you want to affect the actual urls of the pages?

In its current form, the question is quite vague, so the answer I can give you will be as well. I am asuming this is for navigation only as you cannot override the actual urls of pages (without having custom logic in your webapp for resolving the modified urls to actual pages, or by using redirects).

To adjust the navigation, look at your current implementation for generating it and customize it towards your needs. To make it more generic, instead of hardcoding the SG to remove, you can use Structure Group metadata to affect the behavior (this is standard practice).

If you provide additional data, we can probably give you more concrete pointers.

0

By reading your requirement i have understood below:

  1. your page index.html present under following structure group hierarchy where URL is "www.abc.com/product/prd1/index.html": root > product > prd1

  2. you want to URL be as "www.abc.com/prd1/index.html".

Honestly there is no outbox functionality to achieve that.

as an workaround you do 1 of the following:

  1. as Atila mentioned, you can use Structure group metadata
  2. you can set up redirect rule
  3. you can set up custom logic

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.