Jump to content

Multi Language opens second page


pwired
 Share

Recommended Posts

Hi

I have multi language working on a site that I am working on.

mydomain.com/en/

mydomain.com/de/

mydomain.com/es/

If I have mydomain.com open in my browser and then in the browser address bar

I type /de/ so there will be mydomain.com/de/ and hit enter

it opens the german part perfectly. Same works for spanish with /es/

Doing so no new page opens in the browser.

However if I put 3 language flags in the navbar and link each flag to it's language

(for example german flag in the navbar linked to mydomain.com/de/)

then the browser opens a new page and shows there the german text.

same thing when clicking on the spanish language flag.

So when I click on the german flag and then on the spanish flag,

I have 2 new pages opened in my browser.

How can I avoid this and stay in the first page with the default language,

so when for example I click on the german flag no new page is opened

in the browser.

Link to comment
Share on other sites

Yes I see target is blank there in the template

this is the code i have :

<div id="flags" style="float: right; position: relative;">
	
	Select Language
	
	<a target="_blank" href="http://domain.org">
	<img alt="flags"
		src="/site/templates/styles/images/english_flag.png">
	</img>
	</a>

	<a target="_blank" href="http://domain.org/de">
	<img alt="flags"
		src="/site/templates/styles/images/swiss_flag.png">
	</img>
	</a>
	
	<a target="_blank" href="http://domain.org/es">
	<img alt="flags"
		src="/site/templates/styles/images/spanish_flag.png">
	</img>
	</a>
	
	</div><!-- @end #flags -->
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...