From 321118f38417078dc86c56a21e8886bbe3a2bc16 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Mon, 20 Jun 2022 15:41:53 +0200 Subject: [PATCH] DEV: Change `locationType` to `history`. (#17152) `auto` value is deprecated, and we never really supported `hash` (which was the type `auto` was falling back into) --- app/assets/javascripts/discourse/config/environment.js | 2 +- app/helpers/application_helper.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: {},