Skip to content

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

FIX: followRedirects when changing sidebar panel (#25814)

Joffrey JAFFEUX5ea1882e17d4
diff --git a/app/assets/javascripts/discourse/app/components/sidebar/switch-panel-buttons.js b/app/assets/javascripts/discourse/app/components/sidebar/switch-panel-buttons.js
index 9429c902cb2..4482faad44f 100644
--- a/app/assets/javascripts/discourse/app/components/sidebar/switch-panel-buttons.js
+++ b/app/assets/javascripts/discourse/app/components/sidebar/switch-panel-buttons.js
@@ -29,7 +29,7 @@ export default class SwitchPanelButtons extends Component {
if (this.destination) {
try {
- await this.router.transitionTo(this.destination);
+ await this.router.transitionTo(this.destination).followRedirects();
this.sidebarState.setPanel(this.currentPanel.key);
} finally {
this.isSwitching = false;