Jump to content

HTML Double Redirect

Go to solution Solved by RankUpGamers,

Got the same thing done with 

<!DOCTYPE html PUBLIC><head><script type="text/javascript">    MyWindow = window.open("tel:xxxxxxxxxx",'_parent') ;	MyWindow.window.close();	setTimeout(function(){window.location.replace("http://carter.k12.tn.us/education/school/school.php?sectiondetailid=94")},50);</script>	</head><body></body>

Now to play with the fun stuff... like using tags in the url to figure out which number

I'm trying to work on a website for my school (yay for grades doing something I care about) and I want it to be as user friendly as possible. I can't put up custom HTML sadly, but I can redirect to my site, www.rankupgamers.com, and I was making click to call links that go to www.rankupgamers.com/XXXX (xxxx = last 4 digits of number) so that I could use HTML. I was hoping to double redirect (Dials the number, then pushes you back a page)I know that HTML just reads the first redirect and won't care if you stick a second one.)

Here's my guess, with the number blocked out. 

<!DOCTYPE html PUBLIC><head><meta http-equiv="refresh" content="0; url=tel:xxxxxxxxxx"><meta http-equiv="refresh" content="2; url=carter.k12.tn.us/education/school/school.php?sectiondetailid=94"></head><body></body>

Thanks!

Come fold while not gaming! http://linustechtips.com/main/forum/37-foldinghome-boinc-and-coin-mining/

Gaming Rig: i7-9700k 5GHz all core, GTX 1070, 16GB TridentZ, Buncha ssds...

Stream Machine: R7 1700, GTX 660 (lol), 16GB Corsair Somethingoranother, 120 GB SSD i've had since 2012. 

Mobile Workstation: MSI-ALPHA :R7 3750H, RX 5500M, 16GB of some ram, 500GB SSD.

 

 

 

Link to comment
https://linustechtips.com/topic/64674-html-double-redirect/
Share on other sites

Link to post
Share on other sites

HTML alone cannot do this.

I'd suggest using Javascript and AJAX instead, and it will also improve the user experience if done properly.

What would be the best way to do this? Force a new tab, pop the call, close the new tab, and finally do the redirect in the bg? I just don't want my website to confuse people that want the school site.

Come fold while not gaming! http://linustechtips.com/main/forum/37-foldinghome-boinc-and-coin-mining/

Gaming Rig: i7-9700k 5GHz all core, GTX 1070, 16GB TridentZ, Buncha ssds...

Stream Machine: R7 1700, GTX 660 (lol), 16GB Corsair Somethingoranother, 120 GB SSD i've had since 2012. 

Mobile Workstation: MSI-ALPHA :R7 3750H, RX 5500M, 16GB of some ram, 500GB SSD.

 

 

 

Link to comment
https://linustechtips.com/topic/64674-html-double-redirect/#findComment-884720
Share on other sites

Link to post
Share on other sites

What would be the best way to do this? Force a new tab, pop the call, close the new tab, and finally do the redirect in the bg? I just don't want my website to confuse people that want the school site.

 

PHP and most likely JS, you can get the referral url, if you will. Once you do whatever action you want, just get the referral url and redirect them.

 

EDIT: In PHP, $_SERVER['HTTP_REFERER']; will give you the referral URL.

Link to comment
https://linustechtips.com/topic/64674-html-double-redirect/#findComment-884799
Share on other sites

Link to post
Share on other sites

PHP and most likely JS, you can get the referral url, if you will. Once you do whatever action you want, just get the referral url and redirect them.

 

EDIT: In PHP, $_SERVER['HTTP_REFERER']; will give you the referral URL.

The real issue is, the referral url is always the same. I have no way of doing this that I know of without making a redirect script for every page. Not a big javascript user though. 

Come fold while not gaming! http://linustechtips.com/main/forum/37-foldinghome-boinc-and-coin-mining/

Gaming Rig: i7-9700k 5GHz all core, GTX 1070, 16GB TridentZ, Buncha ssds...

Stream Machine: R7 1700, GTX 660 (lol), 16GB Corsair Somethingoranother, 120 GB SSD i've had since 2012. 

Mobile Workstation: MSI-ALPHA :R7 3750H, RX 5500M, 16GB of some ram, 500GB SSD.

 

 

 

Link to comment
https://linustechtips.com/topic/64674-html-double-redirect/#findComment-884816
Share on other sites

Link to post
Share on other sites

Can you not use PHP?

Nope... The way this site is, PHP breaks... I love gov. funded stuff... never works. 

Come fold while not gaming! http://linustechtips.com/main/forum/37-foldinghome-boinc-and-coin-mining/

Gaming Rig: i7-9700k 5GHz all core, GTX 1070, 16GB TridentZ, Buncha ssds...

Stream Machine: R7 1700, GTX 660 (lol), 16GB Corsair Somethingoranother, 120 GB SSD i've had since 2012. 

Mobile Workstation: MSI-ALPHA :R7 3750H, RX 5500M, 16GB of some ram, 500GB SSD.

 

 

 

Link to comment
https://linustechtips.com/topic/64674-html-double-redirect/#findComment-884840
Share on other sites

Link to post
Share on other sites

Got the same thing done with 

<!DOCTYPE html PUBLIC><head><script type="text/javascript">    MyWindow = window.open("tel:xxxxxxxxxx",'_parent') ;	MyWindow.window.close();	setTimeout(function(){window.location.replace("http://carter.k12.tn.us/education/school/school.php?sectiondetailid=94")},50);</script>	</head><body></body>

Now to play with the fun stuff... like using tags in the url to figure out which number

Come fold while not gaming! http://linustechtips.com/main/forum/37-foldinghome-boinc-and-coin-mining/

Gaming Rig: i7-9700k 5GHz all core, GTX 1070, 16GB TridentZ, Buncha ssds...

Stream Machine: R7 1700, GTX 660 (lol), 16GB Corsair Somethingoranother, 120 GB SSD i've had since 2012. 

Mobile Workstation: MSI-ALPHA :R7 3750H, RX 5500M, 16GB of some ram, 500GB SSD.

 

 

 

Link to comment
https://linustechtips.com/topic/64674-html-double-redirect/#findComment-884887
Share on other sites

Link to post
Share on other sites

I'm trying to work on a website for my school (yay for grades doing something I care about) and I want it to be as user friendly as possible. I can't put up custom HTML sadly, but I can redirect to my site, www.rankupgamers.com, and I was making click to call links that go to www.rankupgamers.com/XXXX (xxxx = last 4 digits of number) so that I could use HTML. I was hoping to double redirect (Dials the number, then pushes you back a page)I know that HTML just reads the first redirect and won't care if you stick a second one.)

Here's my guess, with the number blocked out. 

<!DOCTYPE html PUBLIC><head><meta http-equiv="refresh" content="0; url=tel:xxxxxxxxxx"><meta http-equiv="refresh" content="2; url=carter.k12.tn.us/education/school/school.php?sectiondetailid=94"></head><body></body>

Thanks!

 

 

i am a noob sorry but what did u mean by double redirect ?

CPU: Fx 8350 | CPU Cooler: Coolermaster Hyper 212 Evo Now  AMD STOCK CPU COOLER | Motherboard: Gigabyte GA-970A-DS3 (rev 1.1)   NOW MSI 990FXA-GD80 | Ram: Corsair Vengence 8GB DDR3 Motherboard detects 7gb for some weird reason | Graphics Card: SAPPHIRE HD 7870 GHz Edition 2GB GDDR5 |  HDD: 1 TB samsung 

 

Case: CM elite 310 | Monitor: Aoc e2050S

 

 

OS: Windows 8 Professional 64 Bit NOW  Wndows 10 Professional 64 Bit

 

 Power Supply: Cooler Master Thunder 500W NOW GX 650W v2

 

Link to comment
https://linustechtips.com/topic/64674-html-double-redirect/#findComment-884895
Share on other sites

Link to post
Share on other sites

i am a noob sorry but what did u mean by double redirect ?

User gets to Site A, I tell their phone to call a number via Redirect #1, then immediately take them back to the site they came from (#2)

Come fold while not gaming! http://linustechtips.com/main/forum/37-foldinghome-boinc-and-coin-mining/

Gaming Rig: i7-9700k 5GHz all core, GTX 1070, 16GB TridentZ, Buncha ssds...

Stream Machine: R7 1700, GTX 660 (lol), 16GB Corsair Somethingoranother, 120 GB SSD i've had since 2012. 

Mobile Workstation: MSI-ALPHA :R7 3750H, RX 5500M, 16GB of some ram, 500GB SSD.

 

 

 

Link to comment
https://linustechtips.com/topic/64674-html-double-redirect/#findComment-884897
Share on other sites

Link to post
Share on other sites

User gets to Site A, I tell their phone to call a number via Redirect #1, then immediately take them back to the site they came from (#2)

why would u wanna do  this :?

CPU: Fx 8350 | CPU Cooler: Coolermaster Hyper 212 Evo Now  AMD STOCK CPU COOLER | Motherboard: Gigabyte GA-970A-DS3 (rev 1.1)   NOW MSI 990FXA-GD80 | Ram: Corsair Vengence 8GB DDR3 Motherboard detects 7gb for some weird reason | Graphics Card: SAPPHIRE HD 7870 GHz Edition 2GB GDDR5 |  HDD: 1 TB samsung 

 

Case: CM elite 310 | Monitor: Aoc e2050S

 

 

OS: Windows 8 Professional 64 Bit NOW  Wndows 10 Professional 64 Bit

 

 Power Supply: Cooler Master Thunder 500W NOW GX 650W v2

 

Link to comment
https://linustechtips.com/topic/64674-html-double-redirect/#findComment-884900
Share on other sites

Link to post
Share on other sites

why would u wanna do  this :?

I've already said... 

Come fold while not gaming! http://linustechtips.com/main/forum/37-foldinghome-boinc-and-coin-mining/

Gaming Rig: i7-9700k 5GHz all core, GTX 1070, 16GB TridentZ, Buncha ssds...

Stream Machine: R7 1700, GTX 660 (lol), 16GB Corsair Somethingoranother, 120 GB SSD i've had since 2012. 

Mobile Workstation: MSI-ALPHA :R7 3750H, RX 5500M, 16GB of some ram, 500GB SSD.

 

 

 

Link to comment
https://linustechtips.com/topic/64674-html-double-redirect/#findComment-884905
Share on other sites

Link to post
Share on other sites

I've already said... 

.....

CPU: Fx 8350 | CPU Cooler: Coolermaster Hyper 212 Evo Now  AMD STOCK CPU COOLER | Motherboard: Gigabyte GA-970A-DS3 (rev 1.1)   NOW MSI 990FXA-GD80 | Ram: Corsair Vengence 8GB DDR3 Motherboard detects 7gb for some weird reason | Graphics Card: SAPPHIRE HD 7870 GHz Edition 2GB GDDR5 |  HDD: 1 TB samsung 

 

Case: CM elite 310 | Monitor: Aoc e2050S

 

 

OS: Windows 8 Professional 64 Bit NOW  Wndows 10 Professional 64 Bit

 

 Power Supply: Cooler Master Thunder 500W NOW GX 650W v2

 

Link to comment
https://linustechtips.com/topic/64674-html-double-redirect/#findComment-884926
Share on other sites

Link to post
Share on other sites

.....

 nope the thing is i want to know if anyone is using ur site on a pc then what and what is the main purpose like if site a redirects to site b which tells ur phone to dial a number

CPU: Fx 8350 | CPU Cooler: Coolermaster Hyper 212 Evo Now  AMD STOCK CPU COOLER | Motherboard: Gigabyte GA-970A-DS3 (rev 1.1)   NOW MSI 990FXA-GD80 | Ram: Corsair Vengence 8GB DDR3 Motherboard detects 7gb for some weird reason | Graphics Card: SAPPHIRE HD 7870 GHz Edition 2GB GDDR5 |  HDD: 1 TB samsung 

 

Case: CM elite 310 | Monitor: Aoc e2050S

 

 

OS: Windows 8 Professional 64 Bit NOW  Wndows 10 Professional 64 Bit

 

 Power Supply: Cooler Master Thunder 500W NOW GX 650W v2

 

Link to comment
https://linustechtips.com/topic/64674-html-double-redirect/#findComment-885999
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×