Add-on to make sure a particular URL is always opened in the tab?

I’d really appreciate if anyone could help me.

I perform an automated task while a particular webpage is opened in a tab. Sometimes, an error will occur and I’ll be redirected to some error-page with another URL. There are few workarounds but they will cause a whole set of different issues (calling the URL in each cycle will cause issues. Calling the URL every X-minutes is not a good solution. Etc…) So I need an addon to monitor whether in a tab the [given] webpage is opened, and to open the [given] webpage again whenever the error-page (or any other page besides the [given] URL) opens itself at some point in the future.

I hope someone could provide an existing add-on, I’ve spent many hours and had no luck.

Your requirements are very specific and thus I cant think a general addon would suit it.

You can use a user script which is easer to write and maintain.

Just checking before I go out and pay someone to write such a script :). Thank you anyway.

It is not a big script… if you ask, someone might make it for you for free :wink: