Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-03-14 13:10:07

AndrijaM
Member
From: Belgrade, Serbia
Registered: 2007-12-22
Posts: 190
Website

Just another url problem (nothing new for sure)

Hello,
I have a main menu like this:

<ul>
<li class=“home”><a href=”<txp:link_to_home />”>Нome</a></li>
<li class=“archive”><a href=”<txp:section name=“archive” />”>News archive</a></li>
<li class=“links”><a href=”<txp:section name=“links” />”>Links</a></li>
<li class=“aboutUs”><a href=”<txp:section name=“about-us” />”>About us</a></li>
<li class=“contact”><a href=”<txp:section name=“contact” />”>Contact us</a></li>
</ul>

All articles are in archive section, other sections have static content, and everything is fine, until I try to see some individual article. The article opens, but then from that page, every other url changes, for instance, before was:

http://mysite/links

and now is

http://mysite/archive/links

and everything else is like that, every url has this /archive/ addition.

How can I resolve this?

Thanks

Offline

#2 2008-03-14 13:28:44

bancroft
Member
Registered: 2005-09-30
Posts: 39

Re: Just another url problem (nothing new for sure)

Try adding a / before, so

<li class=“links”><a href=”/<txp:section name=“links” />”>Links</a></li>

Offline

#3 2008-03-14 13:51:53

AndrijaM
Member
From: Belgrade, Serbia
Registered: 2007-12-22
Posts: 190
Website

Re: Just another url problem (nothing new for sure)

Thanks!

I am working on a local server, so when I ad only / I get

http://localhost/links

instead of

http://localhost/mysite/links

so I guess I have to add

/mysite/

but when I go live, just to remove this /mysite, and leave only /

Thanks again!

Last edited by AndrijaM (2008-03-14 13:52:44)

Offline

#4 2008-03-14 14:01:47

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Just another url problem (nothing new for sure)

Or perhaps add ./ instead of /

Offline

#5 2008-03-14 16:50:05

AndrijaM
Member
From: Belgrade, Serbia
Registered: 2007-12-22
Posts: 190
Website

Re: Just another url problem (nothing new for sure)

Thanks Ruud, but in my case

/mysite/

does the job, ./ makes the problem from the begining.

Offline

#6 2008-03-14 17:18:51

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Just another url problem (nothing new for sure)

Or you could use <li class="archive"><txp:section name="archive">News archive</txp:section></li>, which is the equivalent of <txp:site_url/><txp:section name="archive"/>/.

Offline

Board footer

Powered by FluxBB