You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding url links in Ghost CMS, you are forced to enter them as absolute paths, e.g. https://ghost-cms.com/welcome/ to link to the welcome post. These links don't work anymore in the gatsby site, as they should be served from the siteUrl, e.g. https://gatsby-ghost.com/welcome/.
You can see the issue also in the demo. Goto the bottom of the demo welcome page and click on "The ghost editor". As a consequence of this issue, the latter is linked to https://gatsby.ghost.io/the-editor/ instead of https://gatsby.ghost.org/the-editor/.
Suggested solution
During static site generation all links in posts starting with https://ghost-cms.com/slug/should be replaced by relative paths such as /slug/
Expected behaviour
Internal links to pages/posts athored by Ghost CMS should also work with Gatsby after static site generation.
The text was updated successfully, but these errors were encountered:
For now I did a quick dirty hack to posts.js in /src/temaplates/, where I replaced both the dev and prod hosts with an empty string making the links relative:
Description
When adding url links in Ghost CMS, you are forced to enter them as absolute paths, e.g.
https://ghost-cms.com/welcome/
to link to the welcome post. These links don't work anymore in the gatsby site, as they should be served from the siteUrl, e.g. https://gatsby-ghost.com/welcome/.You can see the issue also in the demo. Goto the bottom of the demo welcome page and click on "The ghost editor". As a consequence of this issue, the latter is linked to
https://gatsby.ghost.io/the-editor/
instead ofhttps://gatsby.ghost.org/the-editor/
.Suggested solution
During static site generation all links in posts starting with
https://ghost-cms.com/slug/
should be replaced by relative paths such as/slug/
Expected behaviour
Internal links to pages/posts athored by Ghost CMS should also work with Gatsby after static site generation.
The text was updated successfully, but these errors were encountered: