Error with permalinks and plugin (4 posts)

  1. multimolti
    Posted 7 years ago #


    I set my wordpress to use Permalinks with the structure "Day and name", e.g. 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
    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!

  2. Samuel B

    Posted 7 years ago #

    just edit the page and the permalink (right above title bar) from about-me to aboutme or something - save and republish

  3. multimolti
    Posted 7 years ago #

    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/
    I have no idea why removing the dash should help at all...

  4. Samuel B

    Posted 7 years ago #


Topic Closed

This topic has been closed to new replies.

About this Topic