Jump to content

Deactivate Language Redirect Temporary


Fuzzy
 Share

Recommended Posts

Hi everyone!

On my multilanguage website - let's say English and French - I would like to have a page "Downloads" where files (PDFs) are listed. Most files are available in both languages and I would like to link the English version as well as the French version of the PDF.

To setup the Download pages I followed @Soma's tutorial using language alternate fields for the PDFs and managed to display both version of the PDF with the correct language-specific URL

foreach($allLanguages as $language) {
	$html .= "<a href='{$item->getLanguageValue($language->id, 'url')}' target='_blank'>";
	$html .= "<span class='small'>{$language->title}</span>";
	$html .= "</a>";
}

BUT visiting the english website and opening the french PDF will bring me automatically to the english version of the PDF. I guess that this is due to the language redirect ($selectedLangCode = $_COOKIE["lang"];) which is included via prepend.inc and redirect.inc

So my question is: How can I temporary deactivate the language redirect?

Thank you in advance for your help!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...