remove optional extension in url from default mapping