Skip to content

A platform for community discussion. Free, open, simple.

DEV: Change `locationType` to `history`. (#17152)

Jarek Radosz321118f38417
diff --git a/app/assets/javascripts/discourse/config/environment.js b/app/assets/javascripts/discourse/config/environment.js
index 41568254493..f16ed53743c 100644
--- a/app/assets/javascripts/discourse/config/environment.js
+++ b/app/assets/javascripts/discourse/config/environment.js
@@ -5,7 +5,7 @@ module.exports = function (environment) {
modulePrefix: "discourse",
environment,
rootURL: process.env.DISCOURSE_RELATIVE_URL_ROOT || "/",
- locationType: "auto",
+ locationType: "history",
historySupportMiddleware: false,
EmberENV: {
FEATURES: {
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index f069f5560c1..82b29b7ddaa 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -20,7 +20,7 @@ module ApplicationHelper
modulePrefix: "discourse",
environment: Rails.env,
rootURL: Discourse.base_path,
- locationType: "auto",
+ locationType: "history",
historySupportMiddleware: false,
EmberENV: {
FEATURES: {},