Basically I just want to be able to get the current URL of my webpage and add some characters to it.
For example if I'm on: localhost/index.php
I want to put this current url in a variable and add "_en" to it. So it would become: localhost/index_en.php
Like: var url = window.location.pathname
I tried using window.location.pathname and I can get the url but I don't know how to add something to it.