Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit d05401f

Browse files
committed
Only add hash when not in testing
1 parent 7a88b3b commit d05401f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

addon/href-to.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import Ember from "ember";
12
import LinkComponent from '@ember/routing/link-component';
23
import { isPresent } from "@ember/utils";
34

@@ -140,8 +141,7 @@ export default class {
140141
let router = this._getRouter();
141142
let rootURL = router.get('rootURL');
142143

143-
// Add the hash to the front of the url if we are in native app build
144-
if (this.isNativeBuild()) {
144+
if (this.isNativeBuild() && !Ember.testing) {
145145
rootURL = '#' + rootURL;
146146
}
147147

0 commit comments

Comments
 (0)