Skip to content

Commit

Permalink
Add missing slash in Swiftype search overlay workaround urls
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkucharczyk committed Oct 5, 2015
1 parent 881c9b3 commit f41becc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/javascripts/app/swiftype.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ $(function() {
var searchLink = $(this).find('a');
var originalUrl = searchLabel.data('dest-url');
if(originalUrl.indexOf(currentRevision) === -1) {
var searchUrl = currentRevision + originalUrl;
var searchUrl = '/' + currentRevision + originalUrl;
searchLabel.attr('data-dest-url', searchUrl);
searchLink.attr('href', searchUrl);
}
Expand Down

0 comments on commit f41becc

Please sign in to comment.