remove leading /
This commit is contained in:
barisusakli
2016-04-29 10:04:22 +03:00
parent 1d56357611
commit 94432ff796

View File

@@ -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
};