@@ -304,7 +304,7 @@ change the path of your route, you don't have to change your links.
304
304
305
305
#### Properties
306
306
307
- ** to** - The name of the route to link to.
307
+ ** to** - The name of the route to link to, or a full URL .
308
308
309
309
** query** - Object, Query parameters to add to the link. Access query
310
310
parameters in your route handler with ` this.props.query ` .
@@ -322,6 +322,9 @@ Given a route like `<Route name="user" path="/users/:userId"/>`:
322
322
active -->
323
323
<a href =" /users/123?foo=bar" class =" active" >Michael</a >
324
324
<a href =" #/users/123?foo=bar" >Michael</a >
325
+
326
+ <!-- or if you have the full url already, you can just pass that in -->
327
+ <Link to =" /users/123?foo=bar" />
325
328
```
326
329
327
330
@@ -333,18 +336,20 @@ The router has several top-level methods that may be used to navigate around the
333
336
var Router = require (' react-nested-router' )
334
337
```
335
338
336
- ** transitionTo(routeName , [ params[ , query]] )** - Programatically transition to a new route.
339
+ ** transitionTo(routeNameOrPath , [ params[ , query]] )** - Programatically transition to a new route.
337
340
338
341
``` js
339
342
Router .transitionTo (' user' , {id: 10 }, {showAge: true });
340
343
Router .transitionTo (' about' );
344
+ Router .transitionTo (' /users/10?showAge=true' );
341
345
```
342
346
343
347
** replaceWith(routeName, [ params[ , query]] )** - Programatically replace current route with a new route. Does not add an entry into the browser history.
344
348
345
349
``` js
346
350
Router .replaceWith (' user' , {id: 10 }, {showAge: true });
347
351
Router .replaceWith (' about' );
352
+ Router .replaceWith (' /users/10?showAge=true' );
348
353
```
349
354
350
355
** goBack()** - Programatically go back to the last route and remove the most recent entry from the browser history.
0 commit comments