mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
Use siteUrl for share links, not hardcoded www.sharelatex.com
This commit is contained in:
parent
ca1ebd0413
commit
c824c2e7b7
1 changed files with 3 additions and 3 deletions
|
@ -207,7 +207,7 @@ define [
|
|||
@ide = @options.ide
|
||||
|
||||
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
|
||||
|
||||
render: ->
|
||||
|
@ -219,10 +219,10 @@ define [
|
|||
|
||||
url = "https://www.facebook.com/dialog/feed?link=#{encodeURIComponent(@url("fb"))}&" +
|
||||
"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")}&" +
|
||||
"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"
|
||||
mixpanel?.track("Project Shared", { method: "facebook" })
|
||||
window.open(
|
||||
|
|
Loading…
Reference in a new issue