fixing url mapping issue with trailing slash