Commit 1a476b59 authored by Randall Leeds's avatar Randall Leeds

Fixup last to not break share URL

parent ec63c801
......@@ -656,7 +656,7 @@ class Annotation
# just not sure how best to do that with pyramid traversal since there
# is not a pre-determined route map. One possibility would be to
# unify everything so that it's relative to the app URL.
prefix = baseURI.replace /\/\w+\/$/, ''
prefix = baseURI.replace /\/\w+\/?$/, ''
$scope.shared_link = prefix + '/a/' + $scope.model.id
$scope.shared = false
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment