[solved] base ref causing problems with page anchors?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
stevegos

[solved] base ref causing problems with page anchors?

Post 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
Last edited by stevegos on Sat Jan 26, 2013 10:16 am, edited 1 time in total.
User avatar
manuel
Power Poster
Power Poster
Posts: 353
Joined: Fri Nov 30, 2007 9:15 am

Re: base ref causing problems with page anchors?

Post by manuel »

Dear Stevegos,

Try using the anchor tag:

Code: Select all

{anchor anchor='main' text='^ Top'}
Greetings,
Manuel
Do you like your open source cms? Buy from the CMSMS partners || Donate
stevegos

Re: base ref causing problems with page anchors?

Post 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
Locked

Return to “CMSMS Core”