From 94432ff7960983e01842157c26c8e7e60e02ff7f Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 29 Apr 2016 10:04:22 +0300 Subject: [PATCH] closes #4582 remove leading / --- src/user/settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/user/settings.js b/src/user/settings.js index a1a21dd354..81b42d5c17 100644 --- a/src/user/settings.js +++ b/src/user/settings.js @@ -123,7 +123,7 @@ module.exports = function(User) { topicSearchEnabled: data.topicSearchEnabled, delayImageLoading: data.delayImageLoading, groupTitle: data.groupTitle, - homePageRoute: data.homePageCustom || data.homePageRoute, + homePageRoute: (data.homePageCustom || data.homePageRoute).replace(/^\//, ''), scrollToMyPost: data.scrollToMyPost };