Skip to content

Node.js based forum software built for the modern web

#5830

Baris Usakli0a4b76357a52
diff --git a/public/src/client/category.js b/public/src/client/category.js
index a91f32b03e..c852d199ff 100644
--- a/public/src/client/category.js
+++ b/public/src/client/category.js
@@ -16,7 +16,7 @@ define('forum/category', [
var Category = {};
$(window).on('action:ajaxify.start', function (ev, data) {
- if (data.url && !data.url.startsWith('category/')) {
+ if (!String(data.url).startsWith('category/')) {
navigator.disable();
removeListeners();