+ Start a Discussion
Mandy08Mandy08 

Page links on VF pages for Sites not rendering

Hello -

I am having difficulty getting my links between VF pages on my Sites to work correctly, can someone please take a look

and let me know what I am doing wrong. All my VF pages are associated to my site and public, I have a link to a "Locations" page and of course my "Home" link.

Any help is appreciated.

 

Thanks

Amanda

 

<apex:page showHeader="false" standardStylesheets="false" cache="true" expires="10800"> 
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"></meta>
    <title>PPM Technologies</title>
    <apex:stylesheet value="{!$Resource.atest1}"/>
</head>
 
<body>
<div>
    <div><apex:image url="{!$Resource.topborder1}"></apex:image></div>
 
            <div>
            <ul>
            <li><a href="https://na5salesforce.com/apex/ahhomepage">Home</a></li>
            <li><a href="https://na5salesforce.com/apex/ahwebpage2">Locations</a></li>
            </ul> 
            </div>
 

 

Best Answer chosen by Admin (Salesforce Developers) 
RyanGuestRyanGuest

The problem is here:

 

 

<li><a href="https://na5salesforce.com/apex/ahhomepage">Home</a></li>

 

 

 

 

I'm interpreting this to mean "I want to create a link to my Visualforce page named ahhomepage and have the title of the link be home".

 

If so, what you want to do is replace the text you have with this:

 

 

<apex:outputLink value="{!$Page.ahhomepage}">home</apex:outputLink>

 

 

All Answers

Ispita_NavatarIspita_Navatar

Please do elaborate what unusual behaviour is happening?

RyanGuestRyanGuest

The problem is here:

 

 

<li><a href="https://na5salesforce.com/apex/ahhomepage">Home</a></li>

 

 

 

 

I'm interpreting this to mean "I want to create a link to my Visualforce page named ahhomepage and have the title of the link be home".

 

If so, what you want to do is replace the text you have with this:

 

 

<apex:outputLink value="{!$Page.ahhomepage}">home</apex:outputLink>

 

 

This was selected as the best answer
Pradeep_NavatarPradeep_Navatar

It seems that . is missing in between na5 and salesforce.com :

 

<li><a href="https://na5salesforce.com/apex/ahhomepage">Home</a></li>

It should be na5.salesforce.com

 

<li><a href="https://na5.salesforce.com/apex/ahhomepage">Home</a></li>

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.

<li><a href="https://na5salesforce.com/apex/ahhomepage">Home</a></li>
Mandy08Mandy08

Thanks for the replies I will try both RyanGuest and your suggestions, however will have to wait 24 hrs to view

any changes as these pages/site are in my production environment (Inactive) therefore unable to see any

immediate changes, makes fine tuning a long process. Must be the CDN as I have lowered my cache time

in my html.

 

Keep you posted to which suggestion works and will mark/update according.

 

Amanda

Mandy08Mandy08

Thanks to you both, RyanGuest suggestion worked.

I appreciate the responses. :)

Many Thanks