Fix localized slug creation when using history and when the locale changes after document is created
Merge pull request #111 from ByScripts/master

Fix localized slug creation when using history and when the locale changes after document is created