Skip to content

Commit

Permalink
Closes #1206. Fix share url in firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
Rashid Khan committed May 12, 2014
1 parent ecf29ba commit 0e58c6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/services/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,10 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
// TOFIX: Pretty sure this breaks when you're on a saved dashboard already
this.share_link = function(title,type,id) {
return {
location : window.location.href.replace(window.location.hash,""),
location : window.location.href.substr(0, window.location.href.indexOf('#')),
type : type,
id : id,
link : window.location.href.replace(window.location.hash,"")+"#dashboard/"+type+"/"+encodeURIComponent(id),
link : window.location.href.substr(0, window.location.href.indexOf('#'))+"#dashboard/"+type+"/"+encodeURIComponent(id),
title : title
};
};
Expand Down

0 comments on commit 0e58c6f

Please sign in to comment.