WordPress.org

Ready to get started?Download WordPress

Forums

Error with permalinks and plugin (4 posts)

  1. multimolti
    Member
    Posted 5 years ago #

    Hi!

    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
    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!

  2. Samuel B
    moderator
    Posted 5 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
    Member
    Posted 5 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
    moderator
    Posted 5 years ago #

    ok

Topic Closed

This topic has been closed to new replies.

About this Topic