Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Character Filtering in Blog Post Slugs #10

Open
brysont opened this issue May 20, 2016 · 0 comments
Open

Character Filtering in Blog Post Slugs #10

brysont opened this issue May 20, 2016 · 0 comments

Comments

@brysont
Copy link

brysont commented May 20, 2016

Using Pagekit 1.0.3 with PHP 7 and Apache 2.4.

Allowing the post slug to auto-generate from the title on save (a GREAT feature) does not properly account for punctuation in titles. Example...

This title: Jaylon Smith: He's Got The Rush, But No Interceptions?
Makes this slug: jaylon-smith-he-s-got-the-rush,-but-no-interceptions

The comma isn't such a big deal, but since we're on the subject, it should be filtered out. But the apostrophe in "He's" being transformed into a hyphen is just bad seo; should've been stripped and not replaced.

The proper slug of that title should be: jaylon-smith-hes-got-the-rush-but-no-interceptions

Haven't test other special characters or punctuation, though I suspect special characters are handled just fine (like the question mark was).

Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant