Blogspot : How to fix or remove m=1 from the url

Blogspot : How to fix or remove m=1 from the url


m=1 is the value which you will always see when you try to open your blog on you’re mobile or when one opens your blog on Mobile. But when you open the same page on your PC or Desktop, you will not see the value m=1.


https://ssharingmythoughtss.blogspot.com/   m=1  ( Mobile version )

Before proceeding to the process, kindly take the back up of your template, so that if anything goes wrong, you can revert it to the original position.


Blogspot : How to fix or remove m=1 from the url
sharingmythoughts



Now let’s see how to fix or remove m=1 from the url in the blogspot


1. Sign in to your blogger

2. Go to “Theme” option which is on the left side

3. Click on the three dotted lines, if you are in the new version of blogger or click on “Edit HTML” if you are at the older version

4. Go to “Edit HTML

5. Click anywhere in the template and then, tap and hold the “ctrl” button and then tap on “F” button

6.  Then insert “ </body> ” and press enter, you will find the word </body>

7. Now above / before the </body> paste the below mention code



<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>

Note: First try to copy the code on the notepad and then paste it in the html

8. Then click on save button, which is at the top of the right hand side

That’s it


Blogspot : How to fix or remove m=1 from the url
sharingmythoughts

Blogspot : How to fix or remove m=1 from the url
sharingmythoughts

Now access your blog or website through mobile, to check whether m=1 value is visible or not in the url.

If this article has solved your problem, then kindly let us know at the below comment section box.

Next Post Previous Post
9 Comments
  • Dilwar
    Dilwar October 28, 2020 at 6:54 AM

    Do you want to know how to add code box on Blogger post..... Visit my blog https://infokaal.blogspot.com

    • sharingmythoughts
      sharingmythoughts December 17, 2021 at 6:11 PM

      Thank You !

  • Jaypalsinh Jadeja
    Jaypalsinh Jadeja June 13, 2021 at 10:15 PM

    Nice Post
    Blogging Supporter

    • sharingmythoughts
      sharingmythoughts December 17, 2021 at 6:11 PM

      Thank You !

  • Jaypalsinh Jadeja
    Jaypalsinh Jadeja June 13, 2021 at 10:16 PM

    Nice Post
    Blogging Supporter

  • go2geeks
    go2geeks November 26, 2021 at 7:33 AM

    Really I enjoy your site with effective and useful information.
    Thank You !
    Expert Computer Repairs in Perth
    adelaide pc repairs

    • sharingmythoughts
      sharingmythoughts December 17, 2021 at 6:11 PM

      Thank You !

  • Anonymous
    Anonymous January 30, 2022 at 7:57 PM

    Hi,
    Such an amazing article. You would love to see my
    Latest Mobile News site as well.
    Thanks once again.

    • sharingmythoughts
      sharingmythoughts January 31, 2022 at 11:55 AM

      Welcome...

Add Comment
comment url