简体   繁体   中英

Wordpress prefixing all embedded URLs within the post with base website URL

For example, in my post I want to direct the readers to my LinkedIn page, I do the following:

    Please join our <a href="http://www.linkedin.com/groups/mygroup">LinkedIn group</a>

What this does in reality is create a URL pointing to:

    http://www.mywebsite.com/%22http://www.linkedin.com/groups/mygroup/%22

I have a feeling that the issue is related to URL rewrite but could not find anything concrete with that.

Kindly help.

Try it out with just one quote:

Please join our <a href='http://www.linkedin.com/groups/mygroup'>LinkedIn group</a>

I've had this issue before and found something in the url rewrite, but have to do a search for it. Avoiding double quotes did the trick for me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM