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
版权声明:本文标题:php - Slug duplicates once clicking on link 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742001300a2411064.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论