You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 4, 2017. It is now read-only.
Copy file name to clipboardExpand all lines: public/docs/ts/latest/guide/router.jade
+13-9
Original file line number
Diff line number
Diff line change
@@ -975,23 +975,27 @@ code-example(format="").
975
975
That doesn't match any of our configured routes which means that our application won't display any component when it's launched.
976
976
The user must click one of the navigation links to trigger a navigation and display something.
977
977
978
-
We want the application to display the list of crises as it would if we pasted `localhost:3000/crisis-center/` into the address bar.
978
+
We prefer that the application display the list of crises as it would if the user clicked the "Crisis Center" link or pasted `localhost:3000/crisis-center/` into the address bar.
979
979
This is our intended default route.
980
980
981
-
We can arrange for that behavior in several ways.
982
-
One way is to use a `redirect` to transparently navigate from one route to another.
983
-
984
-
In our example, we'll add a route to match our initial URL and redirect to our `crisis-center` route:
981
+
The preferred solution is to add a `redirect` route that transparently translates from the initial URL (`''`) to the preferred default path (`/crisis-center`):
0 commit comments