Fixing a bug about URL-detection. See https://github.com/ivantcholakov/starter-public-edition-4/pull/7