Skip to content

Extra Slash in url when registering kbe_live_search #123

@maevelander

Description

@maevelander

Hi, firstly thanks for the plugin, I like it a lot.

Just thought you should know in version 1.1.7 in the file /includes/kbe-core-functions.php the function kbe_styles() has this line:

wp_register_script( 'kbe_live_search', WP_KNOWLEDGEBASE . '/assets/js/jquery.livesearch.js', array( 'jquery' ), KBE_PLUGIN_VERSION, true );
which is producing two slashes:
/wp-knowledgebase//assets/js/jquery.livesearch.js

In edge cases (android browser) this throws an error, i’ve removed the starting slash and all ok.

wp_register_script( 'kbe_live_search', WP_KNOWLEDGEBASE . 'assets/js/jquery.livesearch.js', array( 'jquery' ), KBE_PLUGIN_VERSION, true );

Again, thanks for a great plugin.
Gary.

Topic Link: https://wordpress.org/support/topic/extra-slash-in-url-when-registering-kbe_live_search/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions