Fix url generation when using wildcard path