Merge pull request #325 from sharelatex/ja-fix-read-only-links

Fix read only links
This commit is contained in:
James Allen 2018-02-12 14:05:33 +00:00 committed by GitHub
commit 8094c5fb72

View file

@ -199,7 +199,7 @@ define [
$scope.$watch "project.tokens.readOnly", (token) -> $scope.$watch "project.tokens.readOnly", (token) ->
if token? if token?
$scope.readOnlyTokenLink = "#{location.origin}/#{token}" $scope.readOnlyTokenLink = "#{location.origin}/read/#{token}"
else else
$scope.readOnlyTokenLink = null $scope.readOnlyTokenLink = null