diff --git a/bin/acoeur.conf b/bin/acoeur.conf index 1a541ca..3810865 100644 --- a/bin/acoeur.conf +++ b/bin/acoeur.conf @@ -3,6 +3,7 @@ DocumentRoot /var/simpleWeb/apps/acoeur/public Alias /edit /var/simpleWeb/apps/acoeur/content + ErrorDocument 404 /404.html AuthUserFile /home/manu/Adata/.htaccessPasswords diff --git a/themes/acoeur/assets/js/author.js b/themes/acoeur/assets/js/author.js index 134eee3..cde675d 100644 --- a/themes/acoeur/assets/js/author.js +++ b/themes/acoeur/assets/js/author.js @@ -1,3 +1,7 @@ +// Move up when a page is absent +if (document.head.querySelector('meta[content="/404.html"]')) + document.location.assign('..') + // Add the proper absolute url to invitation link document.querySelectorAll('aside#actions #invitation') .forEach(elt => elt.href += document.location.href)