Page 1 of 1

base tag question

Posted: Thu May 24, 2007 4:16 pm
by wesyah234
Is there an easy fix for this?

I'm using an rss feed that creates # style footnotes (anchors) to link down to the bottom of the current page.

the page is here:
http://www.firstcongregationalwaukesha. ... page=bible

and the page generates a base of
http://www.firstcongregationalwaukesha.org/newsite/

causing the # links to go to:
http://www.firstcongregationalwaukesha.org/newsite/#f1
for example, which breaks because it comes back to the homepage.

what I really need is for the footnote links to be like this:
http://www.firstcongregationalwaukesha. ... e=bible#f1

as far as I know about html, I either need a base like this:
http://www.firstcongregationalwaukesha. ... page=bible

or no base tag at all (but I don't know what else might break if I mess with the base tag, so I'm looking for advice first!)

Can anyone help?

Thanks!

Re: base tag question

Posted: Sun May 27, 2007 2:16 pm
by myshko
You can remove the base tag with: {metadata  showbase="false"} in your template.

I don't think removing the base tag will cause too many problems. I take it out as it usually causes more issues having it in.

EDIT: On second thoughts, removing the base could cause linking problems. I forget as I link everything relatively from the root of my sites using an initial trailing slash if needed. I don't like using absolute refs at all if possible.

If your links aren't relative, they could point to the wrong location if base is removed which could cause problems with stylesheets and internal links.

It's easy enough to test though, if you have a dev / staging site?

D

Re: base tag question

Posted: Mon May 28, 2007 3:46 am
by wesyah234
That's exactly what it needed. thanks for the help!