Fix editable section link (#1438)

This commit is contained in:
Dawa Ometto
2019-10-10 19:56:00 +02:00
committed by GitHub
parent c8fed4d50d
commit 56e36df6bd
@@ -627,7 +627,7 @@ $(document).ready(function() {
$('a.anchor').each(function (index, anchor) {
header = $(anchor).closest(':header');
if (header.hasClass('editable')){
var newUrl = routePath('edit') + '/' + pageName() + $(anchor).attr('href');
var newUrl = routePath('edit') + '/' + pageFullPath + $(anchor).attr('href');
$(anchor).clone().addClass('edit').attr('href', newUrl).appendTo(header);
}
});