Replace named controller name in path with mapping path. Fixes #772