Title: Error with permalinks and plugin
Last modified: August 19, 2016

---

# Error with permalinks and plugin

 *  [leosh](https://wordpress.org/support/users/multimolti/)
 * (@multimolti)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/error-with-permalinks-and-plugin/)
 * Hi!
 * I set my wordpress to use Permalinks with the structure “Day and name”, e.g. 
   [http://localhost/wordpress/2009/02/25/sample-post/](http://localhost/wordpress/2009/02/25/sample-post/)
   
   The plugin “Ajax Comment Posting” tries to show an image using JavaScript with
   this line: `jQuery('#submit').after('<img src="wp-content/plugins/ajax-comment-
   posting/loading.gif" id="loading" alt="'+loading+'" />');` But my browser tries
   to access the image at [http://localhost/wordpress/about-me/wp-content/plugins/ajax-comment-posting/loading.gif](http://localhost/wordpress/about-me/wp-content/plugins/ajax-comment-posting/loading.gif)
   because the perma link for my current page is “/about-me”. What can I do? I can’t
   use any PHP commands in the JS file, and using a static URL isn’t good either.
 * Please help me!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/error-with-permalinks-and-plugin/#post-1000237)
 * just edit the page and the permalink (right above title bar) from about-me to
   aboutme or something – save and republish
 *  Thread Starter [leosh](https://wordpress.org/support/users/multimolti/)
 * (@multimolti)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/error-with-permalinks-and-plugin/#post-1000315)
 * Why should that help? It doesn’t change anything, the problem is that the image
   path is relative and so the browser adds it after the current path, which is 
   [http://localhost/wordpress/about-me/](http://localhost/wordpress/about-me/)
   
   I have no idea why removing the dash should help at all…
 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/error-with-permalinks-and-plugin/#post-1000323)
 * ok

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error with permalinks and plugin’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Samuel B](https://wordpress.org/support/users/samboll/)
 * Last activity: [17 years, 3 months ago](https://wordpress.org/support/topic/error-with-permalinks-and-plugin/#post-1000323)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
