Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-04-25 14:19:28

december76
Member
From: Malmö, Sweden
Registered: 2004-05-18
Posts: 45
Website

[textile] Footnotes link back to front page

Hello!

I’ve encountered a strange issue, which I can’t resolve myself. When I generate footnotes with Textile the link looks like this: <a href="#fn:1">1</a>. This works fine when you view it on the front page. However, if you view it an an individual article page and click on the link you’re taken to the footnote on the front page instead. It seems the path to the individual article is missing from the footnote link.

Is there a solution to this?

/Joakim

Offline

#2 2008-04-25 14:50:59

trenc
Plugin Author
From: Malmö
Registered: 2008-02-27
Posts: 572
Website GitHub

Re: [textile] Footnotes link back to front page

I use footnotes too … here footnotes don’t have absolute links. They are relative with an # anchor. In your example above is a colon between the # an the digit. Maybe this is the reason so the markup will not correctly parsed.

Are you sure you use footnotes like this:

text to be footnoted[1]
another text to be footnoted[2]

fn1. footnote

fn2. footnote

So this will become:

text to be footnoted1
another text to be footnoted2

1 footnote one

2 footnote two

Offline

#3 2008-04-25 15:17:19

december76
Member
From: Malmö, Sweden
Registered: 2004-05-18
Posts: 45
Website

Re: [textile] Footnotes link back to front page

I think the footnote does get correctly parsed. It works as expected when used on the front page. When a klick on footnote links on individual article pages the link isn’t relative to the individual article page, but to the front page.

A footnote on the page http://hertze.com/2008/04/title links to http://hertze.com/#footnote, i.e. it gets pointed back towards the main domain.

Offline

#4 2008-04-25 16:03:48

december76
Member
From: Malmö, Sweden
Registered: 2004-05-18
Posts: 45
Website

Re: [textile] Footnotes link back to front page

I noticed this thread has been moved to the Textil forum, but I don’t think this is a Textile issue.

Offline

#5 2008-04-25 17:06:55

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

Re: [textile] Footnotes link back to front page

It’s caused by this HTML tag in your template:

<base href="http://hertze.com/" />

Offline

Board footer

Powered by FluxBB