What do you see by a combination of a relative URL (not starting with / or a full URL, including protocol and hostname) and receiving. The latter means that sectionA can be reached after passing through sectionB . You will need to use absolute URLs in the sidebar.
If you use the template method to create the sidebar (Pagetemplate ZPT, XDV, Diazo, etc.), you will need to ensure that you create an absolute URL, either by requesting page A directly for that absolute URL, or any of his ancestors and then add the url from there. Here are three TAL fragments that accomplish this:
<a href="sectionA/pageA" tal:attributes="href sectionA/pageA/absolute_url"/> <a href="sectionA/pageA" tal:attributes="href string:$(sectionA/absolute_url}/pageA"/> <a href="sectionA/pageA" tal:attributes="href string:$portal_url/sectionA/pageA"/>
If you use an external template system such as XDV, the same principles apply, but you wonβt be able to directly access section or page A for their absolute URLs, but you will have absolute URLs to restore the URLs for available, for example, portal_url in the last example.
source share