Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

anchor with ? and dynamic language change #11

Open
Szymon-dziewonski opened this issue Jan 26, 2014 · 2 comments
Open

anchor with ? and dynamic language change #11

Szymon-dziewonski opened this issue Jan 26, 2014 · 2 comments

Comments

@Szymon-dziewonski
Copy link

I can't figure out how to change language with this plugin. Its perfect and I love it but when I do something like here
http://www.bitrepository.com/php-how-to-add-multi-language-support-to-a-website.html
Browser does nothing, adres change to localhost/MYSITE/page.php?lang=en but language does not change.
Its like beeing blocked.
Because when i press enter then and page will reload it change language. (so adress is good)
Can some1 help me with that, please?

I found not direct solution on button which change language
$('#languages a').click(function(event) {
var that = $(this).attr("href");
event.preventDefault();
event.stopPropagation();
window.open(that, '_self');
});

@Takazudo
Copy link
Owner

@Szymon-dziewonski Thanks for reporting.

I'm onto something around history logger about this library. It may be around here
https://github.com/Takazudo/jQuery.LazyJaxDavis/blob/gh-pages/jquery.lazyjaxdavis.coffee#L181-L190

It may be blocking the same page's request even if it has another get parameter.

I'll check the detail when I have time.
Thanks, anyway.

@Szymon-dziewonski
Copy link
Author

@Takazudo No, I thank you for your reply :) So I'm waiting for it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants