payment reminder page redirect to orignal link?

I have Mikrotik RouterOs v4.5. I have hotspot user accounts. I put reminder every 3hrs to pay for the internet service.

I did that using Winbox

In
IP–>hotspot–>userprofiles

I click on the profile of the user and pul URL of payment reminder AD at advertiments url.

But if the user was going to google.com, he will be forwarded to the payment reminder page.

But I want the user to be forwarded to the payment reminder page and redirected after 5 seconds to his orignal url that he intended to visit

In short I want the page of url at IP–>Hotpot–> user profile —>default → advertise -->Advertise URL

forwarded to the orignal url visited by the user after 5 second when it appear

I still haven’t received a reply.

AFAIK there is no way to pass parameters such as the originally requested URL to the server that shows the ad, so it wouldn’t know where to redirect the user after 5 seconds.

Maybe check the HTTP referrer just in case that contains it, then you could use any dynamic language to extract it.

So
Is there a method that I can show the ad every three active hours but the users don’t lose the page they originally going to?

opening the ad in a new window or tab for example.

No. To serve the ad the router takes the HTTP request from the browser and pretends to be the server that hosts that page and says “oh that moved here instead”. It’s impossible to make that happen in a new window or tab (servers have no concept of such things) as no JavaScript or links are involved.

that’s too bad. because the user might be doing steps that not reverse-able and in the middle of that, he will be forwarded to the ad page.