This is a comment on Disable page versioning in permalink, posted by WikiAdmin at 06/28/2026 08:35
View source for Re: Disable page versioning in permalink
Actions are dynamic and then you can use the page tag and the ##link()## function for ##href## once you queried the page table, except the case you wanna explicitly a hash link for copy and paste.
Additionally you can create a template for the action, which makes it easier to set escapes and modify HTML.
%%
$tpl->fail_id = $id;
$tpl->href = $this->href('', $id, '', '', '', false);
$tpl->text = $link_text;
$tpl->title = $page['title'] ?: $page['tag'];
%%
action/template/hashlink.tpl
%%
[ === main === ]
[= fail _ =
<span class="error">[ ' id | e ' ]</sapn>
=]
<a href="[ ' href | e attr ' ]" title="[ ' title | e attr ' ]">[ ' text | e ' ]</a>
%%