teguhrianto / Responsive-Mikrotik-Template

Responsive Mikrotik Template Base on Bootstrap 4
MIT License
40 stars 18 forks source link

redirect #2

Open gvs6 opened 2 years ago

gvs6 commented 2 years ago

Greetings, where could I change the page where it redirects me to msn.com/es ... I would like to validate in which file it is modified. Thanks.

teguhrianto commented 2 years ago

Greetings, where could I change the page where it redirects me to msn.com/es ... I would like to validate in which file it is modified. Thanks.

hello @gvs6 , You will need to replace a variable on the hotspot/login.html document on the router. You must replace $(link-orig) with the url of the website you want them to get after login. There are two, and both look like this: <input type="hidden" name="dst" value="$(link-orig)">

Change them to <input type="hidden" name="dst" value="http://www.mysite.com">

For more, see the docs here: https://wiki.mikrotik.com/wiki/Manual:Customizing_Hotspot

Please let me know if it works or not 😃

gvs6 commented 2 years ago

Thank you very much, it was very useful and your recommendation worked perfectly.