最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - Slug duplicates once clicking on link

programmeradmin2浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论