Skip to content

Node.js based forum software built for the modern web

remove / from startsWith

Barış Soner Uşaklı82875de32de0
diff --git a/public/src/app.js b/public/src/app.js
index 36f5c67b5e..db240575e7 100644
--- a/public/src/app.js
+++ b/public/src/app.js
@@ -276,7 +276,7 @@ app.cacheBuster = null;
if (err) {
return app.alertError(err.message);
}
- if (!ajaxify.currentPage.startsWith('chats/')) {
+ if (!ajaxify.currentPage.startsWith('chats')) {
app.openChat(roomId);
} else {
ajaxify.go('chats/' + roomId);