Thanks for reaching out and apologies for late response.
I understand you are trying to stop the user to move to next page by blocking the page without continue and cancel button but refreshing the page executed the next step in the user joruney.
To avoid this situation, you need to make sure to atleast make one of the output claim as "Required" in your technical profile to execute the next journey. Missing of that required field will not allow user to move further.
<OutputClaim ClaimTypeReferenceId="UserField" Required="true" />
Hope this will help.
Thanks,
Shweta
----------------------------------
Please remember to "Accept Answer" if answer helped you.