diff --git a/addon/components/-private/linked-list-item.js b/addon/components/-private/linked-list-item.js index 0da9c1b2..bf51d4b5 100644 --- a/addon/components/-private/linked-list-item.js +++ b/addon/components/-private/linked-list-item.js @@ -1,4 +1,3 @@ -import { getOwner } from "@ember/application"; import { action } from "@ember/object"; import { inject as service } from "@ember/service"; import Component from "@glimmer/component"; @@ -18,13 +17,6 @@ function getParams(currentRouteInfo) { export default class LinkedListItemComponent extends Component { @service("router") _router; - get isHashLocation() { - return ( - getOwner(this).resolveRegistration("config:environment").locationType === - "hash" - ); - } - /* istanbul ignore next */ get isEngineRouter() { return Boolean(this._router.externalRouter); @@ -77,7 +69,7 @@ export default class LinkedListItemComponent extends Component { let href = absoluteHref; /* istanbul ignore next */ - if (this.isHashLocation) { + if (href.startsWith("#/")) { href = href.replace(/^#/, ""); }