Removed some unneeded logic from urls.