diff --git a/addon/href-to.js b/addon/href-to.js index 2de834b..53ac5e2 100644 --- a/addon/href-to.js +++ b/addon/href-to.js @@ -1,3 +1,4 @@ +import Ember from "ember"; import LinkComponent from '@ember/routing/link-component'; import { isPresent } from "@ember/utils"; @@ -140,8 +141,7 @@ export default class { let router = this._getRouter(); let rootURL = router.get('rootURL'); - // Add the hash to the front of the url if we are in native app build - if (this.isNativeBuild()) { + if (this.isNativeBuild() && !Ember.testing) { rootURL = '#' + rootURL; }