Commits

Sherif Mansour committed cf29536

Made extension use context path so it works in blogs now

Comments (0)

Files changed (1)

src/main/resources/js/confluence-repohover-bb.js

 	var bbLinkId =0;
 	var logPrefix = '[BBCONF] ';
 	var apiBaseUrl = 'https://api.bitbucket.org/1.0';
-	var pluginResourceUrl = '../../download/resources/com.atlassian.labs.sherif.confluence-bitbucket-plugin:repohover';
+	var pluginResourceUrl = AJS.Data.get("context-path")+'/download/resources/com.atlassian.labs.sherif.confluence-bitbucket-plugin:repohover';
 	
 	jQuery("a").each(function() {
 
+		//request.contextpath
 		var href = jQuery(this).attr("href");
 		if (!href){
 			return;