Tweak path handling in routing.