made url congif parameter agnostic to trailing slash