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

{{ghost_head}} and accents #21999

Open
1 task done
cathysarisky opened this issue Jan 13, 2025 · 2 comments · May be fixed by #22094
Open
1 task done

{{ghost_head}} and accents #21999

cathysarisky opened this issue Jan 13, 2025 · 2 comments · May be fixed by #22094
Labels
bug [triage] something behaving unexpectedly community [triage] Community features and bugs

Comments

@cathysarisky
Copy link
Contributor

Issue Summary

My client has moved from Ghost fairly recently. From his old import, he has some links like
/tag/sécurité incendie/page/5/

Note the accent (and also spaces). Ghost actually deals with this, serving up the tags page for securite-indendie instead. However, when it writes out the metadata <link rel="prev" href (and also "next"), it uses the unadjusted form of the tag.

The behavior may be exacerbating search engine crawlers trying to visit the wrong form of the URL.

Steps to Reproduce

Add some random accents and spaces to an existing tag. For example:
https://www.spectralwebservices.com/topic/advanc%C3%A9d%20topics/ (should be advanced-topics)

Ghost Version

5.106.1

Node.js Version

Ghost pro, also 20.

How did you install Ghost?

Ghost Pro, or ghost-cli install (Ubuntu)

Database type

MySQL 8

Browser & OS version

Chrome, Windows 10

Relevant log / error output

No response

Code of Conduct

  • I agree to be friendly and polite to people in this repository
@github-actions github-actions bot added the needs:triage [triage] this needs to be triaged by the Ghost team label Jan 13, 2025
@ErisDS ErisDS added bug [triage] something behaving unexpectedly community [triage] Community features and bugs labels Mar 14, 2025
@github-actions github-actions bot removed the needs:triage [triage] this needs to be triaged by the Ghost team label Mar 14, 2025
@ErisDS
Copy link
Member

ErisDS commented Mar 17, 2025

Hmm, reading back through this - it sounds like the import allowed the creation of a post where the slug field had the accented chars?

I don't think that's meant to be possible 🤔

@cathysarisky
Copy link
Contributor Author

@erinds, I don’t believe that’s the case. Did you see my link? Those accents have never been on the post, but they appear in the meta data when requested, which stops search engines from learning the right accent-free form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [triage] something behaving unexpectedly community [triage] Community features and bugs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants