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();