Gliffy Diagrams in Search Results

Our organization could benefit from the ability to search for terms within Gliffy Diagrams. The Confluence search function provides this feature, but the gliffy diagram search results that are returned are HTML files. 

Ideally this search result would link to the page which the gliffy diagram resides in or the gliffy diagram itself, opened with Gliffy. Instead, the page which is opened is HTML code. Is there a way to change this behaviour?

5 answers

1 accepted

3 votes
Accepted answer

We wrote a quick and a little bit dirty workarround script: 

If a user clicks on the search result the wiki page that contains the gliffy is opened. 

You can add this script to Settings -> Custom HTML -> At end of the BODY.

var current = jQuery(this);
var href = current.attr("href");
jQuery.getJSON(contextPath+href, function(data){
if(data.contentType == "application/gliffy+json"){
var gotogliffy = current.closest("li").find("a.container").last();
window.location = contextPath+gotogliffy.attr("href");
}else{window.location = contextPath+href;}
}).fail(function(){window.location = window.location = contextPath+href;});
return false;

Hello Greg,

The API hook that enabled this functionality has been removed since Confluence 5.2. We've raised the issue with Atlassian, but unfortunately there are no plans for a fix. You can view the full details of the problem here: Feel free to watch, vote, and comment on the issue.

The current workaround is to click the small, gray link below the search result description.


Mike Cialowicz

Gliffy, Inc.

@Mike Cialowicz: is there way for plug-in to control link presented to a user by search? In that case link to a viewer could be provided instead of a file? Like instead of ?

@Mike Cialowicz, I would like to raise your attention concerning this issue again. Is there a workarround for search result display?

Hi Philipp, The current workaround is to click the small, gray link below the search result description in order to navigate to the page containing the Gliffy diagram. Regards, Mike Cialowicz Gliffy

NOTE: I'm currently testing Confluence Version 6.12.2 and if this script is in place in Confluence Administration / Custom HTML, it causes problems with following Search Results hyperlinks. To test, type something into the Search Box in Confluence. When the results are displayed, attempting to follow links to those items produces a "Page Not Found" error. The workaround is to right-click on the individual search result and choose "Open in New Window" or "Open in New Tab"...otherwise you get the error. 

I removed this script from Custom HTML and the problem I describe above went away.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

1,116 views 59 8
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you