Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2020-03-04 12:04:27

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 773
Website

Download link (Textile/Textpattern/HTML) doesn't work ... !?

Very strange … using "Biografie Marije Vijselaar.pdf":/file_download/2/Biografie+Marije+Vijselaar.pdf on www.marijevijselaar.nl the link works … :)

Via Google Search (Marije Vijselaar Harpiste) ON A SMARTPHONE it doesn’t … !?

On my MBP via Google Search it works … :)

On my smartphone via Google Search with "Biografie Marije Vijselaar":https://marijevijselaar.nl/files/Biografie%20Marije%20Vijselaar.pdf (PDF) it works.

What’s happening here?

Last edited by RedFox (2020-03-04 12:12:33)

Offline

#2 2020-03-04 17:37:17

gaekwad
Admin
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 2,991

Re: Download link (Textile/Textpattern/HTML) doesn't work ... !?

Sidestep the issue and avoid using spaces in filenames?

Offline

#3 2020-03-05 16:54:33

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 773
Website

Re: Download link (Textile/Textpattern/HTML) doesn't work ... !?

gaekwad wrote #322067:

Sidestep the issue and avoid using spaces in filenames?

No, that’s not the culprit. The download link (via Google Search) only works with this string of code:

<a href=“https://marijevijselaar.nl/files/Biografie-DuoDyade.pdf”>Biografie DuoDyade</a>

All Txp alternatives don’t work (Textile/Textpattern/HTML) … !?

Last edited by RedFox (2020-03-05 16:55:28)

Offline

#4 2020-03-05 17:55:13

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 8,005
Website

Re: Download link (Textile/Textpattern/HTML) doesn't work ... !?

This is indeed strange. Can you point us to the page that links to that pdf?

Also, did anybody by any chance change the pdf file? ie replacing it in the files tab?


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github | Covid-19; a resource
I do my best editing after I click on the submit button.

Offline

#5 2020-03-05 20:12:46

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 773
Website

Re: Download link (Textile/Textpattern/HTML) doesn't work ... !?

It’s a one-pager > marijevijselaar.nl

No files are changed on the server.

The upper link <a href="https://www.marijevijselaar.nl/files/Biografie-Marije-Vijselaar.pdf">Biografie Marije Vijselaar</a> on the page works on all devices.

The second "Biografie-Marije-Vijselaar.pdf":/file_download/3/Biografie-Marije-Vijselaar.pdf does work on all devices but NOT on my iPhone if the page renders via Google search.

Last edited by RedFox (2020-03-05 20:20:04)

Offline

#6 2020-03-05 20:36:07

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 8,005
Website

Re: Download link (Textile/Textpattern/HTML) doesn't work ... !?

RedFox wrote #322077:

The second "Biografie-Marije-Vijselaar.pdf":/file_download/3/Biografie-Marije-Vijselaar.pdf does work on all devices but NOT on my iPhone if the page renders via Google search.

If you visit the page directly does it work? Also did you try changing the url to "Biografie-Marije-Vijselaar.pdf":https://marijevijselaar.nl/file_download/3/Biografie-Marije-Vijselaar.pdf?


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github | Covid-19; a resource
I do my best editing after I click on the submit button.

Offline

#7 2020-03-05 20:55:39

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,474
Website

Re: Download link (Textile/Textpattern/HTML) doesn't work ... !?

Yes, that second link isn’t canonical. Txp will automatically add the domain name when you click from the site, but maybe the search results don’t because they’re extracting the href directly and thus bypassing the domain.

The question is whether the file_download_link tag can be made to output the full domain or if you need to manually prefix it somehow. I can’t remember offhand if it can be made to output full canonical links or not. If not we can add that feature.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#8 2020-03-05 21:08:50

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 773
Website

Re: Download link (Textile/Textpattern/HTML) doesn't work ... !?

colak wrote #322078:

If you visit the page directly does it work?

Yes, it does.

Also did you try changing the url to "Biografie-Marije-Vijselaar.pdf":https://marijevijselaar.nl/file_download/3/Biografie-Marije-Vijselaar.pdf?

Yes, I did … but it doesn’t work via Google Search.

Hi Stef! The thing is that ONLY using Google Search on a smartphone (any?) is causing this strange behaviour. Google Search on my MBP gives a working download_link.

Last edited by RedFox (2020-03-05 21:13:27)

Offline

#9 2020-03-05 21:14:00

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,474
Website

Re: Download link (Textile/Textpattern/HTML) doesn't work ... !?

RedFox wrote #322080:

[Change the link] Yes, I did … but it doesn’t work via Google Search.

How do you know? Does Google index your site that fast, so you can make a change to your code and it’s immediately reflected in the search results?

Last edited by Bloke (2020-03-05 21:16:00)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#10 2020-03-05 21:15:57

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 773
Website

Re: Download link (Textile/Textpattern/HTML) doesn't work ... !?

Yes, it does … :o

You can try it for yourself. I’ve put all 3 download-links on the page >

Last edited by RedFox (2020-03-05 21:23:31)

Offline

Board footer

Powered by FluxBB