- Issue created by @Rik Wijnen
- 🇮🇳India sijumpk
Tried creating a node with title "A.Foo" and the resulted url is /afoo, as expected. "a" is there in the "strings to remove" list while doing this. It seems like all dots are getting replaced irrespective of its position. Its done inside AliasCleaner::cleanString method. Is it just for me or is there anyone who can recreate this issue?
- 🇮🇳India Meeni_Dhobale
I also tried to reproduce this issue without applying the patch with title "A.Foo" and my URL is "/afoo". I didn't see any kind of 403 HTTP code. I am also not able to reproduce this issue.
- 🇳🇱Netherlands Rik Wijnen
I'm sorry, I realize that I was forgotten one setting;
In step 2, you have to select "no action (do not replace)" for "period (.)" in the "punctuation" section of /admin/config/search/path/settings too to make it break.If you make sure "a" is in the list AND dots must not be replaced, a node with title "A.Foo" will result in url ".foo".
And yes, I'm telling the system to not replace dots but this is a special case because this one will break your site with widely used server configurations. Maybe it should be a setting in the module to prevent urls being starting with a dot, so it can be enabled if your webserver does not allow files and directories to begin with a dot.