Publishing is broken

All new posts that I create and publish wind up at a 404 on the front end, when hovering over links I see the link is still /p/GUID -

Can you tell us a bit more about your setup? How are you hosting Ghost? Has this worked before? Have you done anything before you noticed this?

The more information we have, the better we can help

I’m a Ghost Pro member.

It started failing to post last night. I thought maybe it was me, maybe I pasted in bad Lexical or something using the API but today I’m replicating it with new test posts that should have nothing wrong with them. It just seems like the publishing is failing.

See the “Watchlist” link in the left nav on this page. It shows a /p/ url when you hover instead of the correct url:

To me it looks like the post is published in the admin, but on the front end, it seems to behave like it is still in draft or something. It has been over 30 minutes.

Can you share the contents of your routes file? Get it from /ghost > settings > labs

1 Like

Ahh it was in there! I’m missing a tag - what a weird error to show on the front end. Thanks!!

By the way, there’s no need to set the canonical url, doing so will prevent Ghost from e.g. including it in the sitemap.

1 Like

Not having seen your routes file, I’m guessing you had a situation where your new posts were in NO collections, causing them not to get permalinks. That causes the behavior you were seeing, and is a good reason to make your last collection not have a filter and be a fallback route for any post not matching a previous filter. :slight_smile: Anyway, glad you got it fixed!

1 Like