From bb0d94ddd2ceffe3581106a8e68b33bfe1d7a91e Mon Sep 17 00:00:00 2001 From: Vivek Anand Date: Jul 27 2016 17:37:43 +0000 Subject: Avoid replacing '0' of project name while adjusting url for toggling watch --- diff --git a/pagure/templates/repo_master.html b/pagure/templates/repo_master.html index 762347b..b84b102 100644 --- a/pagure/templates/repo_master.html +++ b/pagure/templates/repo_master.html @@ -226,7 +226,7 @@ $(document).ready(function() { var selectedValue = $(this).attr('id'); var action = $("#watch_project").attr('action'); if (selectedValue != "unwatch_button") { - action = action.replace('/0', '/1'); + action = action.replace('/settings/0', '/settings/1'); $('#watch_project').attr('action', action); } $('#watch_project').submit();