filter urls correctly when displaying account page