From b19f0a686c4d4fd9e39a5a4ddd524522c0ebde88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 7 Oct 2019 16:42:39 -0400 Subject: [PATCH] fix: 404 on new groups with spaces --- public/src/admin/manage/groups.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/admin/manage/groups.js b/public/src/admin/manage/groups.js index de6f515d57..6c4276c268 100644 --- a/public/src/admin/manage/groups.js +++ b/public/src/admin/manage/groups.js @@ -45,7 +45,7 @@ define('admin/manage/groups', ['translator', 'benchpress'], function (translator createModalError.addClass('hide'); createGroupName.val(''); createModal.on('hidden.bs.modal', function () { - ajaxify.go('admin/manage/groups/' + groupData.slug); + ajaxify.go('admin/manage/groups/' + groupData.name); }); createModal.modal('hide'); }