I’m getting an situation, where when I use page_uri, my url looks like
“domain.com/S=7cb9e036c88b90705ddfd2bd81520755f7d21266/segment_1/segment_2”
Any clue what is going on here? If I switch the User Session Type from “Cookies and session ID” to “Cookies only” the problem goes away.
Appreciate any help I can get.
My code looks like such
<ul id="nav">
{exp:structure_entries parent="/{segment_1}/" depth="2"}
{if {depth} == 1}{!-- Top Level --}
<li><a href="http://{page_uri}">{title}</a>{if {children_total} == 0}{!-- No Children - Close Markup --}</li>{/if}
{if:else}
{if {sibling_count} == 1} {!-- First Child - Open Markup --}
<ul>
{/if}
<li {if {sibling_count} == {sibling_total}}class="last"{/if}><a href="http://{page_uri}">{title}</a>
{close_markup}
{if {total_children} == 0 || {depth} == {restricted_depth}}
</li>
{/if}
{if {last_sibling} && {sibling_count} == {sibling_total}}
</ul>
</li>
{/if}
{/close_markup}
{/if}
{/exp:structure_entries}
</ul>
EE 2.5.2
Structure 3.1.3 (also using Structure Entries 1.2.8)