Fixed computation of routed base URI.