Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
Re: Just another url problem (nothing new for sure)
Or perhaps add ./
instead of /
Offline
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
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