| ... | ... |
@@ -35,7 +35,7 @@ $('.issue-message-preview-tab').on('click', function () {
|
| 35 | 35 |
|
| 36 | 36 |
var text = form.find('[name=message]').val();
|
| 37 | 37 |
|
| 38 |
- $.post('/api/markdown', {text : text}, function (result) {
|
|
| 38 |
+ $.post('<%= url_for('/api/markdown') %>', {text : text}, function (result) {
|
|
| 39 | 39 |
var markdown = result.markdown; |
| 40 | 40 |
form.find('.issue-message-preview-area').html(markdown);
|
| 41 | 41 |
}); |