Hello fellas.
First of all i was using search but since i don't know how to qualify this i couldn't find any answer.
So i have made my first php website with closed access to it for people managing stuff. Anyway thats not important, but where problem is for me that i have links on page languages.
Each language points to
'<a href="' . $_SERVER['PHP_SELF'] . '?lang=en">' if there was no $_GET['lang'] key and
'<a href="' . $_SERVER['REQUEST_URI'] . '&lang=en">' if there was $_GET['lang'] key. So problem is if user click same language again and again and again he gets nasty url in browser something like this
index.php?lang=en&lang=en&lang=en&lang=en and so on

Im not sure what should i do for this matter. Altho all works it's just i don't want to be so user non-friendly about urls.
Thanks for reading this.
Best regards Andrew.