Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#*
* Copyright (C) 2025 Curity AB. All rights reserved.
*
* The contents of this file are the property of Curity AB.
* You may not copy or use this file, in either source code
* or executable form, except in compliance with terms
* set by Curity AB.
*
* For further information, please contact Curity AB.
*###

## redirect to the same URL
#set ($_callbackUrl = "")
## using a GET
#set ($_callbackMethod = "get")
#define($_formContent)
## providing 'navigator.maxTouchPoints' in the 'nmtp' query-string variable
<input type="hidden" name="nmtp" id="nmtp"/>
<script type="text/javascript" $!nonceAttr>
const nmtp = navigator.maxTouchPoints
document.getElementById("nmtp").setAttribute("value", "" + nmtp)
</script>

## just to ensure the query-string is not empty and we do not endup on an infinit loop
Copy link

Copilot AI Mar 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in comment: "endup" should be "end up".

Suggested change
## just to ensure the query-string is not empty and we do not endup on an infinit loop
## just to ensure the query-string is not empty and we do not end up on an infinit loop

Copilot uses AI. Check for mistakes.
Copy link

Copilot AI Mar 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in comment: "infinit" should be "infinite".

Suggested change
## just to ensure the query-string is not empty and we do not endup on an infinit loop
## just to ensure the query-string is not empty and we do not endup on an infinite loop

Copilot uses AI. Check for mistakes.
<input type="hidden" name="ctx" value="1" />
#end
#parse("layouts/redirect")
Loading