Changing lang redirect to index.html on Chrome Android

1 reply · opened Feb 27, 2020

OOmar_25Feb 27, 2020

Hello Guys,

My website:
https://www.concorp.global
when i try to change the language in android phones it redirect to index.html.

this only happens in chrome.

Is this because of something in my code? or your theme? or it is google's problem.

please check into this.

thanks

SSemicolon WebSTAFFFeb 28, 2020

Hello,

Apologies about the Inconveniences caused!

The issue appears to be with the touchend JS Code which is only prone to Android Devices.

To fix this, please find the following code in the js/functions.js File inside the menufunctions: function() Function Block:

if( $('.top-links').hasClass('on-click') || ( $body.hasClass('device-md') || $body.hasClass('device-sm') || $body.hasClass('device-xs') ) ) {
	$('.top-links:not(.on-click) > ul').superfish('destroy');
	$('.top-links li:has(ul,.top-link-section) > a').on( 'click touchend', function(e){
		$(this).parents('li').siblings().find('ul,.top-link-section').removeClass('d-block');
		$(this).parent('li').children('ul,.top-link-section').toggleClass('d-block');
		e.preventDefault();
	});
}

and replace it with:

if( $('.top-links').hasClass('on-click') || ( $body.hasClass('device-md') || $body.hasClass('device-sm') || $body.hasClass('device-xs') ) ) {
	$('.top-links:not(.on-click) > ul').superfish('destroy');
	$('.top-links li:has(ul,.top-link-section) > a').on( 'click', function(e){
		$(this).parents('li').siblings().find('ul,.top-link-section').removeClass('d-block');
		$(this).parent('li').children('ul,.top-link-section').toggleClass('d-block');
		e.preventDefault();
	});

	$(document).on('click', function(event) {
		if (!$(event.target).closest('.top-links li:has(ul.d-block,.top-link-section.d-block)').length) { $('.top-links li').children('ul,.top-link-section').toggleClass('d-block', false); }
	});
}

This will definitely work fine. Hope this Helps!

We will make updates to the Default Codes in the Next Update.

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard