How To Fix ?m=1 Problem in Blogger

 Hello Froiends,

If you are using blogger and opened your website in  mobile then you are facing problem of URL.

In mobile browser all website that designed using blogger that have a problem with URL

If you opened your website in your mobile browser then your website URL ?m=1 automatically came




Here I Am sharing simple steps to Fix ?m=1 In blogger  

 

  1. First Go to blogger Dashboard
  2. Now click on Theme and click on edit HTML

    .
  3. Now Paste below code between <body> tag. Simply scroll down and at the bottom of page paste the code above  </body> tag.
     
     
     
    <script type='text/javascript'>
    //<![CDATA[
    var uri = window.location.toString();
    if (uri.indexOf("%3D","%3D") > 0) {
    var clean_uri = uri.substring(0, uri.indexOf("%3D"));
    window.history.replaceState({}, document.title, clean_uri);
    }
    var uri = window.location.toString();
    if (uri.indexOf("%3D%3D","%3D%3D") > 0) {
    var clean_uri = uri.substring(0, uri.indexOf("%3D%3D"));
    window.history.replaceState({}, document.title, clean_uri);
    }
    var uri = window.location.toString();
    if (uri.indexOf("&m=1","&m=1") > 0) {
    var clean_uri = uri.substring(0, uri.indexOf("&m=1"));
    window.history.replaceState({}, document.title, clean_uri);
    }
    var uri = window.location.toString();
    if (uri.indexOf("?m=1","?m=1") > 0) {
    var clean_uri = uri.substring(0, uri.indexOf("?m=1"));
    window.history.replaceState({}, document.title, clean_uri);
    }
    //]]>
    </script>
     
     
     

    .
  4. Click On save to save Code.

 Done., Now ?m=1 Problem Fixed

 



Next Post Previous Post
No Comment
Add Comment
comment url