Skip to content

Node.js based forum software built for the modern web

fix regression: open chat page when in chats route instead of in modal

psychobunnyee4943c485bf
diff --git a/public/src/app.js b/public/src/app.js
index cf8232e3e4..0659268f18 100644
--- a/public/src/app.js
+++ b/public/src/app.js
@@ -310,7 +310,7 @@ app.cacheBuster = null;
return app.alertError(err.message);
}
- if (!ajaxify.currentPage.startsWith('chats')) {
+ if (!ajaxify.data.template.chats) {
app.openChat(roomId);
} else {
ajaxify.go('chats/' + roomId);