typo3-realurl icon indicating copy to clipboard operation
typo3-realurl copied to clipboard

Feature: Replace apostrophe with -

Open gaumondp opened this issue 6 years ago • 5 comments

Use case: In French apostrophes are frequently used in page titles and are just removed in RealURL.

Having apostrophe replaced with "-" would make url more human readable.

gaumondp avatar Jun 06 '18 16:06 gaumondp

Approved. For example a page called L'école in french (it means the school) should be called through /l-ecole and not lecole

stat1x avatar Jun 08 '18 09:06 stat1x

I am aware of this issue. However this will lead to a problem with already existing pages: they will suddenly change paths, which would cause problems with Google and bookmarks. I cannot make the change that will break all existing URLs. Sorry :( Possibly these characters can be configurable. That would be better.

dmitryd avatar Jun 13 '18 16:06 dmitryd

New checkbox in EM for "Replace apostrophe to hyphen (-)". Unchecked by default.

gaumondp avatar Jun 13 '18 16:06 gaumondp

And another one for ~ character. And yet another for something else? :) No, not a good idea.

dmitryd avatar Jun 18 '18 09:06 dmitryd

@gaumondp see PR https://github.com/dmitryd/typo3-realurl/pull/636 There will be soon a hook to add own replacement methods. So you just could hook in there and change all ' to - if you like. Be aware, that this will break links on your website.

schliesser avatar Jul 26 '18 09:07 schliesser