Cleans up the URL generation
Adds a shared base template