Title: Links getting screwed with JavaScript
Last modified: August 19, 2016

---

# Links getting screwed with JavaScript

 *  [BillHely](https://wordpress.org/support/users/billhely/)
 * (@billhely)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/links-getting-screwed-with-javascript/)
 * WordPress seems to be messing up links placed into comments.
 * Here’s the link I want:
 * [https://mail.google.com/support/bin/answer.py?hl=en&answer=32050](https://mail.google.com/support/bin/answer.py?hl=en&answer=32050)
 * And this is what WordPress does to it (Copy link location):
 * javascript:if%20(confirm(‘This%20link%20will%20take%20you%20to%20the%20URL%20https://
   mail.google.com/support/bin/answer.py?hl=en%26%23038;%20-%20is%20that%20something%
   20you%20want%20to%20do?’))%20document.location=’[https://mail.google.com/support/bin/answer.py?hl=en&&#8217](https://mail.google.com/support/bin/answer.py?hl=en&&#8217);;
 * So you don’t end up at the right URL at all.
 * To see this in action go to:
    [http://computerandonlinesecurity.com/blog/hints-tips/password-mania-or-something-completely-different/](http://computerandonlinesecurity.com/blog/hints-tips/password-mania-or-something-completely-different/)
 * And check out Comment #6.
 * How do I fix?

The topic ‘Links getting screwed with JavaScript’ is closed to new replies.

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [links](https://wordpress.org/support/topic-tag/links/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [BillHely](https://wordpress.org/support/users/billhely/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/links-getting-screwed-with-javascript/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
