Skip to content

{{ghost_head}} and accents #21999

@cathysarisky

Description

@cathysarisky

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

Metadata

Metadata

Assignees

Labels

bug[triage] something behaving unexpectedlycommunity[triage] Community features and bugs

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions