document permalink reworked