[#4695] Add prependMatchedRouteName()

Fix for #4695.