WordPress.org

Ready to get started?Download WordPress

Forums

Relative URL
It "fixes" ALL URLs, so it break external ones (3 posts)

1 star
  1. bfred.it
    Member
    Posted 7 months ago #

    The plugin is supposed to make local URLs relative, but by mistake it also makes external URLs relative, thus it breaks the website.

    This is how it doesn't work:

    http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js becomes:
    /ajax/libs/jquery/1.10.2/jquery.min.js, which is basically:
    http://yourwebsite.com/ajax/libs/jquery/1.10.2/jquery.min.js

  2. Tunghsiao Liu
    Member
    Plugin Author

    Posted 3 months ago #

    WordPress has built-in jQuery support so there's no need to include an external jQuery library for your theme. The built-in jQuery should be located at:

    /wp/wp-includes/js/jquery/jquery.js?ver={{VERSION_PLACEHOLDER}}

    And this plugin is only for local development purpose, in my case external URL shouldn't be replaced unless the theme itself is poorly written and uses some weird methods to include external libraries.

  3. Tunghsiao Liu
    Member
    Plugin Author

    Posted 3 months ago #

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.