Fix bug that #3894 doesn't work with context path (#3906)

This commit is contained in:
Yasumichi Akahoshi
2026-01-03 20:54:42 +09:00
committed by GitHub
parent ecd3f5b4eb
commit b582af4469

View File

@@ -208,7 +208,7 @@ $(function(){
$('#preview').show();
$('#btn-code').removeClass('active');
$.get("/_is_renderable?filename=" + encodeURIComponent($('#newFileName').val()), function(data) {
$.get("@context.baseUrl/_is_renderable?filename=" + encodeURIComponent($('#newFileName').val()), function(data) {
if (data === 'true') {
// update preview
$('#preview').html('<img src="@helpers.assets("/common/images/indicator.gif")"> Previewing...');