question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AMP post absolute URL is not so

See original GitHub issue

Hello, I’m running 1.24.8 and I don’t see anything related in more recent Release Notes nor Issues.

Ghost is installed in a subfolder https://mywebsite.com/blog/ Add a link to an absolute URL like [somewhere](/somepage.html) in some post Non-AMP version renders correctly https://mywebsite.com/somepage.html On the AMP version it renders relative like https://mywebsite.com/blog/somepage.html (404)

Anyone else noticed this behaviour?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
nazcommented, Sep 17, 2018

@kirrg001 thanks for the explanation ⭐ Yeah, my questions were related to the observations that I’ve made during code exploration. It all makes sense to me now.

@tucoinfo wasn’t able to reproduce your bug unfortunatelly. Could you maybe provide a step by step guide on reproducing the bug. Maybe I’m just missing some step when trying to replicate it locally. Thanks!

0reactions
tucoinfocommented, Oct 9, 2018

@gargol that’s clear, and thank you for the v2 warning.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can the amphtml link tag use relative href instead of absolute?
Even if it happens to work, it is much better to use absolute links for this purpose because the document could appear in...
Read more >
Google takes a tiny step toward fixing AMP's URL problem
Google is trying to fix AMP URLs by announcing support for something called “Signed Exchanges.” What it should mean is that when you...
Read more >
AMP status report - Search Console Help - Google Support
This report helps you fix errors that prevent your AMP pages from appearing in Google Search results with AMP-specific features.
Read more >
What's in an AMP URL?
Paul's post goes into great detail describing the benefits of AMP Caches, but it doesn't quite answer the question why they require new...
Read more >
Allow 'search_api_url' field to index absolute url - Drupal
Add a config option to the AddURL plugin allowing administrators to set the field to index absolute instead of relative URLs, then simply...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found