Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-02-17 15:34:19

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

XHTML and textile link code on Files tab.

I’m currently working on a site using the 4.0.8 standard install which requires PDF downloads. All the internal links using the Textpattern link code work fine however we needed an external link for one file. I used the XHTML link code for it which gives me:-

http://my-site.com/index.php?s=file_download&id=22

This throws a 404 error and the textile link code is the same.

The Textpattern link code gives me:-

http://my-site.com/index.php?s=file_download&id=22

which works fine. I think there might be a little bug in there for the other 2 types of link.

Last edited by thebombsite (2009-02-19 18:27:22)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#2 2009-02-17 15:55:11

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: XHTML and textile link code on Files tab.

the same issue reported earlier today


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2009-02-17 16:04:12

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: XHTML and textile link code on Files tab.

Oh. Sorry Yiannis I just came straight here with it. That other post is in the wrong forum really.

And valid or not it doesn’t work. Is it a case of escaping or not escaping? That entity code appears in the URL whereas I’m thinking it should have been “swapped” to an ampersand.

It should output the same way as the Textpattern type link code.

Last edited by thebombsite (2009-02-17 16:06:40)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#4 2009-02-18 06:56:48

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: XHTML and textile link code on Files tab.

Thanks for the report, fixed.

Offline

#5 2009-02-19 18:27:57

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: XHTML and textile link code on Files tab.

Thanks Robert.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#6 2009-02-19 22:36:52

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: XHTML and textile link code on Files tab.

On second thought, installing the update only fixes the Textile type link. The XHTML type remains as was.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#7 2009-02-20 05:28:27

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: XHTML and textile link code on Files tab.

thebombsite wrote:

On second thought, installing the update only fixes the Textile type link. The XHTML type remains as was.

On purpose. If this doesn’t work in a certain browser, it’s that browser’s bug.

Offline

#8 2009-02-20 22:23:25

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: XHTML and textile link code on Files tab.

OK. But we are talking Firefox here. Whenever I have to use some externally supplied javascript that has un-encoded ampersands in link URLs I replace them with & which is acceptable according to your link. Can we not change it over? I have the impression & is more widely recognised. I never heard of & before this problem occurred.

Isn’t #38 the alt-number-pad code for an ampersand?

Last edited by thebombsite (2009-02-20 22:28:00)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#9 2009-02-21 07:25:30

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: XHTML and textile link code on Files tab.

Offline

Board footer

Powered by FluxBB