Hi
I have a web page that has a FAQ list. Via the wysiwyg I make each question a link to an anchor further down the page where the answer is.
The problem: When I click on a question link the page jumps to the home page instead of the down the same page.
Why?
Looking at the output source code there is a base ref in the head with the url to the root of the home page. ie.
<base href="http://www.mydomain.co.uk/" />
If I save the source code as a static page and delete the above it fixes the problem.
How can I remove this from being code?
If I remove it will it cause problems else where?
Is there a better way to do this?
I'm using cmsms 1.11.4
All help greatly appreciated.
Steve
[solved] base ref causing problems with page anchors?
[solved] base ref causing problems with page anchors?
Last edited by stevegos on Sat Jan 26, 2013 10:16 am, edited 1 time in total.
Re: base ref causing problems with page anchors?
Dear Stevegos,
Try using the anchor tag:
Greetings,
Manuel
Try using the anchor tag:
Code: Select all
{anchor anchor='main' text='^ Top'}
Manuel
Do you like your open source cms? Buy from the CMSMS partners || Donate
Re: base ref causing problems with page anchors?
Excellent. Thanks for that.
Just at the same time I found the same tag in the documentation:
http://docs.cmsmadesimple.org/tags/core/anchor
Just at the same time I found the same tag in the documentation:
http://docs.cmsmadesimple.org/tags/core/anchor