Redirects UI allows bad yaml files upload

I wonder how to recover the redirects after uploading by error routes.yaml instead redirects.yaml.

The UI accepted the wrong file and now I can’t see post or pages. Tried to use a blank file but it stills broken.

ghost buster didn’t help this timem. Any advice?

Uploading a redirects.yaml file with
301:
302:

Should fix it.

1 Like

Thanks for your reply, I tried it but it’s not working. The browser and Ghost log shows 404 error.

I can see the posts on admin dashboard but I can’t access them from https://myblog.tld/p/UUID or update their paths.

INFO "GET /blogpost/" 404 83ms
INFO "GET /" 200 140ms
INFO "GET /p/UUID/" 301 26ms
INFO "GET /404/" 404 55ms

Looking for redirects.yaml on my fileserver lists the wrong uploaded with timestamps and the fresh empty one.

I’m open to suggestions :)

Permission issue was related and now it’s solved. It seems I brick it trying to solve the initial issue.

I kindly suggest to the team to add a filter to redirects.yaml upload UI in order to avoid future issues as well.

Thanks, Cathy.

1 Like