Hi,

° (degree) is not available in exception list (like " or @).

Can you add it ?

Actually, if you use [node:title] and write something like :
Download magazine N°4
url will be : http://exemple.com/download-magazine-ndeg4
But I'll prefer http://exemple.com/download-magazine-n4

How can I delete this "deg" in my path ?

Thank you,

CommentFileSizeAuthor
#2 Screenshot1.png42.8 KBstockticker

Comments

nothinghere created an issue. See original summary.

stockticker’s picture

StatusFileSize
new42.8 KB

Pathauto is transliterating degree symbol (to 'deg') before 'Reducing strings to letters and numbers' and before 'Punctuation symbols', so actually, only way that i have found to remove 'deg' - is to turn 'Transliterate prior to creating alias' off. (check screenshot)

Priyanka.addweb’s picture

It is good if '°' add to PUNCTUATION string. 'Transliterate prior to creating alias' is not working properly.

Chris Charlton’s picture

+1 for this ticket.

duaelfr’s picture

You could use hook_pathauto_punctuation_chars_alter() to add the degree symbol to the list BUT transliteration is called first so it would still fail.

See #2979476: Remove the punctuation before transliteration and #3032769: Cannot remove certain characters from URL aliases

avpaderno’s picture

Issue tags: -°, -degree
mably’s picture

Status: Active » Closed (works as designed)

Just tested that the hook_pathauto_punctuation_chars_alter works now perfectly fine to solve this problem.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.