There was an error while loading. Please reload this page.
1 parent 7a88b3b commit d05401fCopy full SHA for d05401f
1 file changed
addon/href-to.js
@@ -1,3 +1,4 @@
1
+import Ember from "ember";
2
import LinkComponent from '@ember/routing/link-component';
3
import { isPresent } from "@ember/utils";
4
@@ -140,8 +141,7 @@ export default class {
140
141
let router = this._getRouter();
142
let rootURL = router.get('rootURL');
143
- // Add the hash to the front of the url if we are in native app build
144
- if (this.isNativeBuild()) {
+ if (this.isNativeBuild() && !Ember.testing) {
145
rootURL = '#' + rootURL;
146
}
147
0 commit comments