This thing is happening only in using in mobile. e.g www.example.com&m=0
I’m using a script to redirect my all links to a particular page which is a confirmation page, where user when click on ‘confirm’ then only they get redirected. www.santhaledisom.com/p/confirmation.html?=‘www.yourcontent.com’ They are redirected to www.mycontent.com only after clicking on ‘confirm’ button.
But it actual appears to be ‘www.mycontent.com&m=0’ and as a result link doesn’t work
This thing is working on fine on desktop version but not in while using in mobile. My site is based on Blogger platform, even when blogger’s mobile template is switched off it still happens same.
Confirmation.html page has button (Id=myButton)
<script>
//get a reference to the element
var myBtn = document.getElementById('myButton');
var href = document.location.href;
var link = href.split('?=')[1];
//add event listener
myBtn.addEventListener('click', function(event)
{
window.location.href="http://" link; });
</script>
I guess this might be the thing that switches between mobile and desktop version And add ‘m=0’ to my all url.
var curl = window.location.href;if (curl.indexOf('m=1') != -1) {curl = curl.replace('m=1', 'm=0');window.location.href = curl;