Skip to content

EspoCRM – Open Source CRM Application

router options string to object

Yurii926e951dfc61
diff --git a/client/src/router.js b/client/src/router.js
index 751ad456b6..4fc49b4994 100644
--- a/client/src/router.js
+++ b/client/src/router.js
@@ -528,7 +528,7 @@ const Router = Backbone.Router.extend(/** @lends Router# */ {
}
if (string.indexOf('&') === -1 && string.indexOf('=') === -1) {
- return string;
+ return {[string]: true};
}
const options = {};