Code still runs after redirect?

Hi @Tim_Jones
Out of curiosity: why do you have a problem with these errors occurring after navigating to another page? Yes, they do occur, but they do not affect your users, or? It is also a best practice to catch errors with try-catch blocks.

Regards

They do affect the user. The errors are dragged into the page you’re trying to redirect to and that page doesn’t load as a result of the errors.

Tim

Thanks, @Glenn_D. Sorry for the slow reply, I juggle a lot of things and this go pushed to the wayside as it was working “good enough”.

Hiding the workspace block to prevent errors and showing a loading spinner is a great idea. It’s a simple solution to this problem.

I wish “On Before Page Enter” actually worked how it sounds, but this will work for me.

Thank you for sharing your experience!

Tim