Solve ?m=1 blogger url problem in just 1 minute - Neody IT

0
Neody IT

I assume that by "?m=1 blogger url problem" you mean the issue where your Blogger blog URL displays "?m=1" at the end of the link when accessed from a mobile device.


This issue can occur due to a problem with Blogger's mobile template. Fortunately, it can be easily fixed by following these steps:


1. Login to your Blogger account and go to your blog's Dashboard.

2. Click on "Theme" from the left-hand menu.

3. Take Backup of your blog so if any error occurs in your blog then you can restore and fix it.

4. Click on the "Edit HTML" button.

5. Paste the given code before the </body> closing tag:

6. Save the changes and preview your blog on a mobile device to see if the issue has been resolved.

See the video for detailed process



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




Hope this helps you.
Write your opinion in comment box and read our more posts.
Tags

Post a Comment

0Comments

Please don't enter any spam link in comment box

Post a Comment (0)
To Top