Skip to content

Internal links in blog posts broken #107

@styxlab

Description

@styxlab

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 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or requesthelp wantedCommunity project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions