0

This is what i have i a child routing( from work --> index.js)

.map(acceptedTypes).buildNavigationModel().mapUnknownRoutes('code404', 'code404');

how can i redirect it to the parent code404 ?

my folder looks like this.

 App |
     viewmodels |
                shell.js
                code404.js
                home.js
                work  |
                      index.js
                      office.js

     views     |

error:

View Not Found. Searched for "views/work/code404

this will work but will breack the page

.mapUnknownRoutes(function () { return router.navigate('#code404'); }, 'code404');
Gildas.Tambo
  • 22,173
  • 7
  • 50
  • 78

1 Answers1

0

This is how i do it. 'Users' matches my route.

  childRouter.mapUnknownRoutes('Users', '#membership/Users');
William
  • 1,375
  • 12
  • 27