Community discussions

MikroTik App
 
bossst
just joined
Topic Author
Posts: 19
Joined: Wed Feb 29, 2012 5:43 pm

Hotspot redirect how to skip alogin

Fri Aug 23, 2013 5:38 am

Hi all

We are using hotspot with the trial session. When a user click GO on the login.html page is redirect to alogin.html to be redirected to the page we want. My question is, is it possible to simply click on GO from the login page and be redirected directly to external page without opening the alogin page.

We want to do this because almost all user close the page when they see the alogin page and they are not redirected.

Thanks.
 
User avatar
Stillhard
Frequent Visitor
Frequent Visitor
Posts: 82
Joined: Sun Jun 10, 2012 11:18 am
Location: Banten, Indonesia
Contact:

Re: Hotspot redirect how to skip alogin

Fri Aug 23, 2013 9:17 pm

Hi all

We are using hotspot with the trial session. When a user click GO on the login.html page is redirect to alogin.html to be redirected to the page we want. My question is, is it possible to simply click on GO from the login page and be redirected directly to external page without opening the alogin page.

We want to do this because almost all user close the page when they see the alogin page and they are not redirected.

Thanks.
change

html code

<meta http-equiv="refresh" content="x_seconds; url=$(link-redirect)">
or

html code

<meta http-equiv="refresh" content="x_seconds; url=http://www.yourhost.com/pagetosendto.html">
or add

javascript code

<script type="text/javascript">
<!--
setTimeout(function(){location.href=$(link-redirect)} , x_seconds);
-->
</script>
or

javascript code

<script type="text/javascript">
<!--
setTimeout(function(){location.href="http://www.yourhost.com/pagetosendto.html"} , x_seconds);
-->
</script>
before the </head> tag in alogin.html
x_seconds = put 0 for instant redirect

Who is online

Users browsing this forum: almdandi, Google [Bot], HakanE, meazz1, shreck, sindy and 112 guests