add routing to make outbound urls work correctly