hack to allow trailing slashes on urls