mirror of
https://github.com/discourse/discourse.git
synced 2025-02-23 15:12:11 +08:00

d7d4612b2df2b4f87dfe64aafdcda8b8e8142c18 removed the duplicate call to initState(). However, we are relying on a side effect of the duplicate call for subfolder sites to function correctly when accessed without a trailing slash. To avoid a large refactor before the stable release, this commit restores the old behavior. Long term we should look at migrating to Ember's built-in location library, rather than maintaining our own (very similar) version https://github.com/emberjs/ember.js/blob/master/packages/%40ember/-internals/routing/lib/location/history_location.ts