admin管理员组

文章数量:1316541

I'm using polylang plugin.

I have the current URL http://localhost/wordpress/en/ in my browser, I have another URL that suppose to change language to Hebrew http://localhost/wordpress/he/.

<a href="<?php echo get_home_url(); ?>/en/">English</a>
<a href="<?php echo get_home_url(); ?>/he/">hebrew</a>

Everytime I click on another link, I receive the following:

http://localhost/wordpress/he/en/

(it just adds slug over another slug instead replacing it)

How can I prevent slug duplication on URL address?

本文标签: phpSlug duplicates once clicking on link