Fix e shortcut with baseurl
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
Mousetrap.bind(['e'], function( e ) {
|
Mousetrap.bind(['e'], function( e ) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
window.location = "/edit" + window.location.pathname;
|
window.location = "{{edit_path}}" + '/' + pageFullPath;
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user