How to fix/remove (?m=1) in blogger url

How to fix/remove ?m=1 in blogger url

Today we will know how to fix and remove the ?m=1 problem in Blogger URL. Fixing this problem is very easy.

Whenever we make our blog on Blogger, we all have this problem, that when we open our blog in desktop, your URL appears correctly.

But if we open our blog in mobile, then ?m=1 or ?m=0 appears behind the URL of our blog. I am going to tell you how to fix this problem.

How to Remove ?m=1 from Blogger Complete Process 

Follow the few steps given below :

Step1 : First of all,download the code and go to the theme of your blog.

Step 2 : Now you have to go to Edit Html.
First of all,download the code and go to the theme of your blog.

Step 3 : Now you will search the tag </body> in html section of your blog

Now you will search the tag </body> in html section of your blog

Step 4 : Now you have to paste that code below the </body> tag which I have given below.
Now you have to paste that code below the </body> tag which I have given below.

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

At last that problem of your blog was permanenetly fixed.

Watch the tutorial 


If you like this post then don't forget to share.

1 Comments

Post a Comment

Post a Comment

Previous Post Next Post