This is a comment on Disable page versioning in permalink, posted by WikiAdmin at 06/25/2026 08:15

View source for Re: Disable page versioning in permalink

Change the permalink so it always link to the page and not to the recent version of the page by setting  ##version=0##. The permalink uses the ##hashid## action.
%%
Description:
	Creates a permalink to the current version of the page or simply to the page itself.

Usage:
	{{hashid}}

Options:
	[version=0|1]
		0 - link to the page
		1 - link to the current page version (default)
%%

[1] **Theme footer** 
In your theme footer you can set the ##version## parameter to ##0##.

((source:master/src/theme/default/appearance/footer.php theme/default/appearance/footer.php))
%%
// permalink
$tpl->perma_link = $this->action('hashid', ['version' => 0]);
%%

[2] **Action**
When using the action in a page:

((source:master/src/action/hashid.php action/hashid.php))
##~{{hashid version=0}}##