WordPress.org

Forums

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

  1. bfred.it
    Member
    Posted 1 year 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 (a.k.a. Sparanoid)
    Member
    Plugin Author

    Posted 12 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 (a.k.a. Sparanoid)
    Member
    Plugin Author

    Posted 12 months ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.