Fix missing routes incompatible with a subpath

This commit is contained in:
Sebastian Serth
2021-11-03 16:02:21 +01:00
parent 7bda3f1950
commit eb69697b9a
8 changed files with 20 additions and 18 deletions

View File

@@ -109,7 +109,7 @@ javascript:
$.ajax({
dataType: 'json',
method: 'GET',
url: '//' + location.host + location.pathname + '/mark_as_solved'
url: '#{ mark_as_solved_request_for_comment_path(@request_for_comment) }'
}).done(function(response){
if(response.solved){
solvedButton.removeClass('btn-primary');
@@ -127,7 +127,7 @@ javascript:
$.ajax({
dataType: 'json',
method: 'POST',
url: '//' + location.host + location.pathname + '/set_thank_you_note',
url: '#{ set_thank_you_note_request_for_comment_path(@request_for_comment) }',
data: {
note: value
}