Replace Context#path with the base url if it's configured.