• I have a bilingual site that uses qTranslate for creating additional language pages on the site. Every page and post has a equivalent post and page in the second.

    After installing ScrapeBreaker all the pages in the second language get redirected to the first language. The problem is caused by this Javascript that is inserted into the page by the plugin:

    <script type="text/javascript" async >
    	// <![CDATA[
    	var thispage = "http://shahrefarang.com/";
    	if (top.location!=thispage){top.location.href=thispage}
    	// ]]>
    	</script>

    Apparently the plugin does not work with qTranslate. I have not tried it with WPML but I think it might have the same problem there.

    Note: The problem does not happen when you are logged in as Admin so you might not notice it when you are logged in but your website’s visitors see the problem.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor redsand

    (@redsand)

    Thanks for the heads up.

    That JS is a major part of the plugin. The URL is dynamically generated by PHP.

    Yes, when you are logged in as an admin, there is no reason for the plugin to be active so it doesn’t add the code to the page. I’m not sure why that plugin would have the second page use the same URL internally. I’ll look into it, but I’m not sure I’ll be able to fix that one. I’ll list qTranslate as incompatible for now.

    Thread Starter bluebird2

    (@bluebird2)

    Thanks. The URL is not exactly the same. If the page in the main language is:

    http://MYDOMAINNAME.com/123

    the URL of the page in the second language (in this case English) is:

    http://MYDOMAINNAME.com/en/123

    Plugin Contributor redsand

    (@redsand)

    Thanks for posting that info. Hmm, that’s a bit weird…the php on each page should put the unique URL in the JS.

    If everything is working right, it should have the full unique URL in the JS.

    Would you be willing to post the JS code that is inserted into your page on each of those two types of URL’s? That would help me.

    You’ve got me kindof curious now. I don’t use qTranslate, but I’ll see if I can install it on a test site and see what’s up. It might be a bit before I’ll get a chance to test it though.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Does Not Work on Bilingual Websites (using qTrnslate)’ is closed to new replies.