Fix url parser for local pages