Create alias if automatic_alias is enabled even if friendly urls are disabled

Fixes #11458