Fixed baseurl routing when there's a trailing slash.