Skip to content
Advertisement

Stay on same page when changing language

When I change the language on the page everything changes and starts from the main page (“index.php?lang=en”) but the question is, when I am in “about.php” I want to stay on the same page “about.php?lang=en”…. who can help me to realize that?

JavaScript

<a href="index.php?lang=en" class="dropdown-item _chng-link">english</a> <a href="index.php?lang=ru" class="dropdown-item _chng-link">russian</a>

Advertisement

Answer

This will give you a good direction and cleaner readable & more secure flow:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement