Page 1 of 1

[solved] base ref causing problems with page anchors?

Posted: Fri Jan 25, 2013 5:21 pm
by stevegos
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

Re: base ref causing problems with page anchors?

Posted: Fri Jan 25, 2013 11:18 pm
by manuel
Dear Stevegos,

Try using the anchor tag:

Code: Select all

{anchor anchor='main' text='^ Top'}
Greetings,
Manuel

Re: base ref causing problems with page anchors?

Posted: Sat Jan 26, 2013 10:16 am
by stevegos
Excellent. Thanks for that.

Just at the same time I found the same tag in the documentation:

http://docs.cmsmadesimple.org/tags/core/anchor