|
@@ -72,7 +72,8 @@
|
|
|
// modify href
|
|
// modify href
|
|
|
const value = $(this).val();
|
|
const value = $(this).val();
|
|
|
const pageName = (value === 'children') ? '_template' : '__template';
|
|
const pageName = (value === 'children') ? '_template' : '__template';
|
|
|
- const link = '{{ page.path || path }}' + pageName + '#edit-form';
|
|
|
|
|
|
|
+ const truePath = "{{ page.path || path | removeTrailingSlash | addTrailingSlash }}";
|
|
|
|
|
+ const link = truePath + pageName + '#edit-form';
|
|
|
$('#link-to-template').attr('href', link);
|
|
$('#link-to-template').attr('href', link);
|
|
|
});
|
|
});
|
|
|
</script>
|
|
</script>
|