How to Fix ?m=1 Problem in Blogger

 Fix ?m=1 Problem in Blogger 

How To Fix ?m=1 Problem in Blogger


All of you are welcome back to my blog, today we will talk about how you can fix ?m=1 Problem in Blogger.
When you share a link, you may see that in last of your link ?m=1 is appearing, which is not a big problem but you should fix it.
As You can see in the photo that ?m=1 was also appearing in my website links but I have fixed it, so you can too.



How To Fix ?m=1 Problem in Blogger
I'll tell you how to Fix ?m=1 Problem in Blogger.

Note :: Do not try to change the "how to fix ?m=1 in blogger" code, if you do so you may face some problems in your site. I suggest you to do not change.

How to Fix ?m=1 in blogger code 

1. First of all You have to copy this 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>

2.Then you have to go to on your blogger Dashboard and then click on the theme option.

After clicking on theme option, you have to click on edit html

3. Now you can see all of your website coding but you have to go to the bottom, where you will see </body>. Just paste the code you copied above the </body> tag.

4. That's all, now you don't have to do anything, go refresh your website And then see that your website url is clean now and free from ?m=1 Problem.

If your problem is solved then let us know in the comments. And share it among who are facing the same Problem.

Rohit Singh

My name is Rohit Singh and I love technologies. And I also post videos on my YouTube Channel "Jolly Entertainment". And I am also a newbie photographer, who loves nature and it's wilderness.

Please Don't Put Any Spam Link Here.

Post a Comment (0)
Previous Post Next Post