Use siteUrl for share links, not hardcoded www.sharelatex.com

This commit is contained in:
James Allen 2014-02-22 11:09:10 +00:00
parent ca1ebd0413
commit c824c2e7b7

View file

@ -207,7 +207,7 @@ define [
@ide = @options.ide @ide = @options.ide
url: (medium) -> url: (medium) ->
"https://www.sharelatex.com/project/#{@ide.project.get("id")}" + "#{window.sharelatex.siteUrl}/project/#{@ide.project.get("id")}" +
"?r=#{@ide.user.get("referal_id")}&rs=ps&rm=#{medium}" # Referal source = public share "?r=#{@ide.user.get("referal_id")}&rs=ps&rm=#{medium}" # Referal source = public share
render: -> render: ->
@ -219,10 +219,10 @@ define [
url = "https://www.facebook.com/dialog/feed?link=#{encodeURIComponent(@url("fb"))}&" + url = "https://www.facebook.com/dialog/feed?link=#{encodeURIComponent(@url("fb"))}&" +
"app_id=148710621956179&" + "app_id=148710621956179&" +
"picture=https://www.sharelatex.com/brand/logo/logo-128.png&" + "picture=#{window.sharelatex.siteUrl}/brand/logo/logo-128.png&" +
"name=#{@ide.project.get("name")}&" + "name=#{@ide.project.get("name")}&" +
"caption=My LaTeX project (#{@ide.project.get("name")}) is available online on ShareLaTeX&" + "caption=My LaTeX project (#{@ide.project.get("name")}) is available online on ShareLaTeX&" +
"redirect_uri=http://www.sharelatex.com&" + "redirect_uri=#{window.sharelatex.siteUrl}&" +
"display=popup" "display=popup"
mixpanel?.track("Project Shared", { method: "facebook" }) mixpanel?.track("Project Shared", { method: "facebook" })
window.open( window.open(