Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
Re: Download link (Textile/Textpattern/HTML) doesn't work ... !?
Sidestep the issue and avoid using spaces in filenames?
Offline
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
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 | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
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
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 | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
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
Online
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
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
Online
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
Re: Download link (Textile/Textpattern/HTML) doesn't work ... !?
Hmmm. I can only presume that the indexing algorithm that Google uses for smartphones is different to the one they use for desktop. Perhaps to save bytes in the payload they don’t re-request URLs that aren’t fully canonical and try to serve them “as-is”. Just a guess. But quite why a fully-qualified link doesn’t work is a mystery.
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
Online
Re: Download link (Textile/Textpattern/HTML) doesn't work ... !?
Offline