Swap url.resolve for slash handling