Hi @MSC2021 ,
Welcome to the community!
Instead of using the URL action for this, you can try using the javascript action, with the following code:
const anchorName = "myAnchor";
location.hash = "#" + anchorName;
where you replace myAnchor
with your anchor name.