Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.7.0 change url starting with hyphen #5812

Closed
KaaJaryi opened this issue Sep 8, 2015 · 4 comments
Closed

0.7.0 change url starting with hyphen #5812

KaaJaryi opened this issue Sep 8, 2015 · 4 comments
Labels
bug [triage] something behaving unexpectedly p1:priority [triage] Priority for immediate patch release
Milestone

Comments

@KaaJaryi
Copy link

KaaJaryi commented Sep 8, 2015

Hi,

Yesterday I upgrade Ghost, but some problems force me to back up and reinstall all. 0.7.0 is very nice (thank you very much !), but the new url builder modify url starting with hyphen (example from my blog : http://epris-de-justice.info/-si-elle-se-tient-a-carreaux-je-veux-bien-rester/ is 404 and the new url is http://epris-de-justice.info/si-elle-se-tient-a-carreaux-je-veux-bien-rester/). It's not a problem for new article, but for the old ones it' breaks all links from the outside (social media & all).

Can it be possible to add one hyphen manually ?

Thanks for all,
Cosme

@ErisDS
Copy link
Member

ErisDS commented Sep 8, 2015

Hi @toblerone1963, this is a pretty hairy bug. Can you provide some more details about how the slug (the end part of that url) got changed? Did you edit the slug or just the post?

@ErisDS ErisDS added the bug [triage] something behaving unexpectedly label Sep 8, 2015
@ErisDS ErisDS added this to the Post-Zelda milestone Sep 8, 2015
@KaaJaryi
Copy link
Author

KaaJaryi commented Sep 8, 2015

Sorry, I forget.

I imported (via Lab) the back up (0.6.4) on my new server (0.7.0)
(totaly my bad u_u")

Le mardi 08 septembre 2015 à 11:01:25, Hannah Wolfe a écrit :

Hi @toblerone1963, this is a pretty hairy bug. Can you provide some more
details about how the slug (the end part of that url) got changed? Did you edit
the slug or just the post?


Reply to this email directly or view it on GitHub.*

Cosme Buxin
06 95 39 68 85
@cosme_buxin

@ErisDS ErisDS added the p1:priority [triage] Priority for immediate patch release label Sep 14, 2015
@KaaJaryi
Copy link
Author

Hi,

I may have find a solution.

First I thought using this technique, a bit long and crafty.

But a better solution seems to use this middleware to automatically redirect slug starting with new forbidden characters to the new slug.

Sorry, I don't have the time at the moment to test that, so… best luck ! :)

cobbspur added a commit to cobbspur/Ghost that referenced this issue Sep 23, 2015
closes Issue TryGhost#5812

- pass importing property through to utils
- fix safeString method for imports
@ErisDS ErisDS closed this as completed Sep 24, 2015
@ErisDS
Copy link
Member

ErisDS commented Sep 24, 2015

closed by c0b5de6 / #5866

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [triage] something behaving unexpectedly p1:priority [triage] Priority for immediate patch release
Projects
None yet
Development

No branches or pull requests

2 participants