Hi all
I have created a brochure page titled delivery.html. It contains several fragments and each fragment uses a different anchor (eg. cost, returns etc)
I want to refer to the anchors, from my footer section.
I have replaced the standard acatalog directory with a directory called gifts.
Ideally, I do not want to hardcode the full pathname as it will therefore never work properly when in test mode.
.
So, how do I code the href command to refer correctly on both the home page and any other section/brochure page.
.
for example, coded in my footer page:-
href="delivery-information.html#cost"
On all but the home page this links correctly to:-
"http://www.domainname.co.uk/gifts/delivery-information.html#cost"
when in test mode - "http://www.domainname.co.uk/gifts/test/gifts/delivery-information.html#cost"
BUT
On the home page this builds the link incorrectly as:-
"http://www.domainname.co.uk/delivery-information.html#cost"
when in test mode - "http://www.domainname.co.uk/gifts/test/delivery-information.html#cost"
.
Do I need to use a different href command depending on if its the home or the rest or am I missing something?
I have created a brochure page titled delivery.html. It contains several fragments and each fragment uses a different anchor (eg. cost, returns etc)
I want to refer to the anchors, from my footer section.
I have replaced the standard acatalog directory with a directory called gifts.
Ideally, I do not want to hardcode the full pathname as it will therefore never work properly when in test mode.
.
So, how do I code the href command to refer correctly on both the home page and any other section/brochure page.
.
for example, coded in my footer page:-
href="delivery-information.html#cost"
On all but the home page this links correctly to:-
"http://www.domainname.co.uk/gifts/delivery-information.html#cost"
when in test mode - "http://www.domainname.co.uk/gifts/test/gifts/delivery-information.html#cost"
BUT
On the home page this builds the link incorrectly as:-
"http://www.domainname.co.uk/delivery-information.html#cost"
when in test mode - "http://www.domainname.co.uk/gifts/test/delivery-information.html#cost"
.
Do I need to use a different href command depending on if its the home or the rest or am I missing something?
Comment