Skip to content

Commit 64cbbbd

Browse files
committed
[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.
1 parent 1032b80 commit 64cbbbd

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
@@ -628,8 +628,7 @@ class Route extends EmberObject implements IRoute {
628628
```
629629
630630
It is also possible to pass a URL (a string that starts with a
631-
`/`). This is intended for testing and debugging purposes and
632-
should rarely be used in production code.
631+
`/`).
633632
634633
```javascript
635634
this.transitionTo('/');

0 commit comments

Comments
 (0)