Fix double slash in urls when pushState enabled