Can a page url include the parent page hierarchy?Can a page url include the parent page hierarchy?https://liferay.dev/c/message_boards/find_thread?p_l_id=119785333&threadId=1205672942024-03-29T07:29:34Z2024-03-29T07:29:34ZRE: Can a page url include the parent page hierarchy?Christoph Rabelhttps://liferay.dev/c/message_boards/find_message?p_l_id=119785333&messageId=1205855572021-02-04T17:03:50Z2021-02-04T17:03:50Z<p>One of our customers did it manually. He entered parent/child into
the page url. Liferay actually accepts that. It isn't nice and needs
careful work, but it can be done. Since he only had about 50 or so
pages, it was doable manually.</p>
<p>An automatic way would probably be possible too, by hooking the page
creation/page update process. E.g. by using a
LayoutLocalServiceWrapper and then adjust the url automatically to
always add the whole path.</p>
<p>I am not sure if this is a good idea and if there are any caveats
(e.g. what happens if the page is moved around, do you fix the path or not?)</p>Christoph Rabel2021-02-04T17:03:50ZCan a page url include the parent page hierarchy?Fernando Fernandezhttps://liferay.dev/c/message_boards/find_message?p_l_id=119785333&messageId=1205672932021-01-28T18:40:10Z2021-01-28T18:40:10Z<p>Hi guys,</p>
<p>Normally, when we access a page the url is something like
https://hostname/page-friendly-url even if the page is not on the
first level on the site builder page hierarchy. I understand the
advantage but some customers ask for this, based on SEO arguments.</p>
<p>For example, if we have a homepage called "home" and a
sub-page called "sub-home1", the friendly-url will be
/sub-home1 and /home/sub-home1 will not work.</p>
<p>Is there any way to make hierarchy-based urls?</p>
<p>I've encountered this case:
https://www.liferay.com/resources/case-studies/materion-case-study but
I'm not able to reproduce it.</p>
<p>TIA</p>
<p>Fernando</p>
<p> </p>