Skip to content

Commit 3dcc488

Browse files
eflanagan0kategengler
authored andcommitted
[DOC beta] remove needless prohibition
Originally introduced here: https://github.com/emberjs/ember.js/pull/4403/files Discussion question: https://discuss.emberjs.com/t/why-should-i-avoid-transitionto-and-full-urls/14870 This prohibition does not seem necessary so we should remove to avoid teaching overhead. (cherry picked from commit 64cbbbd)
1 parent e5bdcba commit 3dcc488

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

packages/@ember/-internals/routing/lib/ext/controller.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ ControllerMixin.reopen({
113113
```
114114
115115
It is also possible to pass a URL (a string that starts with a
116-
`/`). This is intended for testing and debugging purposes and
117-
should rarely be used in production code.
116+
`/`).
118117
119118
```javascript
120119
aController.transitionToRoute('/');
@@ -195,8 +194,7 @@ ControllerMixin.reopen({
195194
```
196195
197196
It is also possible to pass a URL (a string that starts with a
198-
`/`). This is intended for testing and debugging purposes and
199-
should rarely be used in production code.
197+
`/`).
200198
201199
```javascript
202200
aController.replaceRoute('/');

packages/@ember/-internals/routing/lib/system/route.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -625,8 +625,7 @@ class Route extends EmberObject implements IRoute {
625625
```
626626
627627
It is also possible to pass a URL (a string that starts with a
628-
`/`). This is intended for testing and debugging purposes and
629-
should rarely be used in production code.
628+
`/`).
630629
631630
```javascript
632631
this.transitionTo('/');

0 commit comments

Comments
 (0)