Skip to main content
John Neff (Ring2Media) a posé une question dans #Data Management
Hi!

 

This one is kind of stupid, but I have a Visualforce page that contains a navigation bar with links to other visualforce pages.  Each time I click one of the buttons in the navigation bar, the URL in the address bar grows longer adding another "/apex". 

 

After bouncing around a few pages, my address bar looks like this: 

 

 

https://c.na2.visual.force.com/apex/apex/apex/apex/apex/apex/apex/apex/apex/apex/apex/SalesActivity

 

This does not hurt functionality in any way, but it makes the project that I am working on come off as unpolished. 

 

Is there any way I can fix this? Is it something in the way I have my links encoded? 

 

Here is the HTML behind my navigation bar: 

 

 

<li><a href="apex/GUIHome"><span>Gene</span></a></li>

<li><a href="apex/HappeningNow"><span>Happening Now</span></a></li>

<li><a href="apex/ClientDelivery"><span>Client Delivery</span></a></li>

<li><a href="apex/ROIREVENUE"><span>ROI and Revenue</span></a></li>

<li><a href="apex/PRODUCTION"><span>Production</span></a></li>

<li><a href="apex/SalesActivity"><span>Sales Activity</span></a></li>

 

Thanks in advance! John
6 réponses
  1. 25 févr. 2015, 14:53
    Hi John.

     

    You can solve this by adding a forward slash at the beginning of each of your URLs. 

    <li><a href="/apex/GUIHome"><span>Gene</span></a></li>

    <li><a href="/apex/HappeningNow"><span>Happening Now</span></a></li>

    <li><a href="/apex/ClientDelivery"><span>Client Delivery</span></a></li>

    <li><a href="/apex/ROIREVENUE"><span>ROI and Revenue</span></a></li>

    <li><a href="/apex/PRODUCTION"><span>Production</span></a></li>

    <li><a href="/apex/SalesActivity"><span>Sales Activity</span></a></li>

     

    If that works for you, please be sure to select a Best Answer so that this question is no longer listed as Unresolved. Thanks!

     

    -Greg

     

     
0/9000