A
A
Anastasia2020-05-14 23:24:18
PHP
Anastasia, 2020-05-14 23:24:18

How to add a word to the address bar when clicking on a button?

Guys, such a question - how, when you click on a button, add a word to the address bar.
For example, there is an address mysite.com/about , and when you click on the button, you need to insert the word in this way mysite.com /EN/ about and, most importantly, immediately go to a new page with a new address

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
ThunderCat, 2020-05-14
@ThunderCat

window.location.href + replace()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question