wp-knowledgebase icon indicating copy to clipboard operation
wp-knowledgebase copied to clipboard

Extra Slash in url when registering kbe_live_search

Open maevelander opened this issue 8 years ago • 0 comments

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/

maevelander avatar Dec 31 '17 07:12 maevelander