remove slashes from before template urls