From ffd5aebd9eef1caa08c63e67f8f10ce5ccb35921 Mon Sep 17 00:00:00 2001 From: Tyler Date: Thu, 5 Jul 2018 17:11:06 -0700 Subject: [PATCH] Fixing copying/share links. Fixes #62. --- ui/src/app/components/poll/poll.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/app/components/poll/poll.component.ts b/ui/src/app/components/poll/poll.component.ts index 5b56aa6..57c9e84 100755 --- a/ui/src/app/components/poll/poll.component.ts +++ b/ui/src/app/components/poll/poll.component.ts @@ -496,7 +496,7 @@ export class PollComponent implements OnInit { if (!readOnly || this.poll.readOnly) { return window.location.href; } else { - return window.location.host + "/#/poll/" + + return window.location.origin + "/#/poll/" + Tools.hashIdReadOnlyPrefix + window.location.hash.split("/")[2]; }