From 6c84c3b9715921dfc433b29a9923a6ff39de5e4b Mon Sep 17 00:00:00 2001
From: Dessalines <tyhou13@gmx.com>
Date: Thu, 29 Aug 2019 21:41:41 -0700
Subject: Better urls.

---
 ui/src/components/comment-form.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'ui/src/components/comment-form.tsx')

diff --git a/ui/src/components/comment-form.tsx b/ui/src/components/comment-form.tsx
index 57518a13..b4cc03a4 100644
--- a/ui/src/components/comment-form.tsx
+++ b/ui/src/components/comment-form.tsx
@@ -47,7 +47,7 @@ export class CommentForm extends Component<CommentFormProps, CommentFormState> {
         {
           trigger: '@',
           selectTemplate: (item: any) => {
-            return `[/u/${item.original.key}](${window.location.origin}/u/${item.original.key})`;
+            return `[/u/${item.original.key}](/u/${item.original.key})`;
           },
           values: (text: string, cb: any) => {
             this.userSearch(text, users => cb(users));
@@ -59,7 +59,7 @@ export class CommentForm extends Component<CommentFormProps, CommentFormState> {
         {
           trigger: '#',
           selectTemplate: (item: any) => {
-            return `[/c/${item.original.key}](${window.location.origin}/c/${item.original.key})`;
+            return `[/c/${item.original.key}](/c/${item.original.key})`;
           },
           values: (text: string, cb: any) => {
             this.communitySearch(text, communities => cb(communities));
-- 
cgit v1.2.3

