fix for URLs without trailing slash