How to Fix ?m=1 error issue in blogger
m=1 Fix: Many blogger face this problem. This is a normal thing for smartphone url. It jusr suffix for mobile to direct user to mobile version of blog. But some time search consol give error related to m=1. If you think search consol giving error related to this or you dont want this suffix for your blog. you have to add small code in your blog. For this edit your blog theme for this follow these points one by one as it is
1. First login in your blog.
2. Go to your theme by clicking theme on right side control panel in blogger.
4. Note: Before editing anything take backup of your theme, so anything go wrong you can revert to previous form. If you do not know how to take backup of your theme Click here "
How to take backup of theme or restore it.
5. In your theme html editor find
"<body>", if you can not find then press "ctrl+F" or see Find in your browser gear (:) three dots.
6. Copy pase this code just below "<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>
7. Save your template and see result in your smartphone browser. the problem will be solve.
8. If this not worked for you then go to bottom in html editor and search "</body>" and pase above it. and again check in mobile browser.
Please like and Share this post on social networks.