Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-01-14 10:50:56
- rahul
- New Member
- Registered: 2006-01-04
- Posts: 9
example.com/about, and example.com/about/
As the subject line suggests, I am having difficulty with the different ways that TP treats URLs.
I’m using clean URLs, and textpattern treats these two paths as different:
http://cfl.in/about
and
http://cfl.in/about/
Now – I really don’t have a problem if that’s all it did. However, what it does do to links, is this:
http://cfl.in/krishnamurti
becomes:
http://cfl.in/about/krishnamurti
This, understandably, returns a 404.
I’m using the MDP sectionmenu plugin, and this is what the code for the menu looks like:
<code>
<txp:mdp_sectionmenu home=“0” order=“about,krishnamurti,staff,campus,cflday,parents,finances,directions” class=“related-links” />
</code>
All help would be appreciated :-)
Thanks in advance,
Rahul.
Offline
#2 2006-01-14 11:08:07
- rahul
- New Member
- Registered: 2006-01-04
- Posts: 9
Re: example.com/about, and example.com/about/
Really sorry about the double-posting – I think it was the <code> tag.
R.
Offline
#3 2006-01-14 23:07:05
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: example.com/about, and example.com/about/
This might be a bug in the plugin, or it might be a problem with relative links – i.e. <a href="krishnamurti">
will link to different locations depending on what the current URL is.
Last edited by zem (2006-01-14 23:08:35)
Alex
Offline
Re: example.com/about, and example.com/about/
That’s right zem and that’s a bug.
You have to modify the plugin like this :
<code>href=”’.hu.$sect.’”</code>
<code>href=”’.hu.’?s=’.$sect.’”</code>
Just add the <code>.hu.</code>
Last edited by fpradignac (2006-02-17 11:51:05)
françois
Offline