Routing: Adding application and menu objects to component routers (Fix #4848)