Skip to content

Commit c29cd9d

Browse files
committed
Open public survey page with target="_blank"
1 parent 86ccf00 commit c29cd9d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

vue/src/components/SurveyListItem.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@
3535
Edit
3636
</router-link>
3737
<div class="flex items-center">
38-
<router-link
39-
:to="{name: 'SurveyPublicView', params: {slug: survey.slug}}"
38+
<a
39+
:href="`/view/survey/${survey.slug}`"
40+
target="_blank"
4041
class="h-8 w-8 flex items-center justify-center rounded-full border border-transparent text-sm text-indigo-500 focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"
4142
>
4243
<svg
@@ -53,7 +54,7 @@
5354
d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"
5455
/>
5556
</svg>
56-
</router-link>
57+
</a>
5758
<button
5859
v-if="survey.id"
5960
type="button"
@@ -62,7 +63,7 @@
6263
>
6364
<svg
6465
xmlns="http://www.w3.org/2000/svg"
65-
class="h-5 w-5 -mt-1 inline-block"
66+
class="h-5 w-5"
6667
viewBox="0 0 20 20"
6768
fill="currentColor"
6869
>

0 commit comments

Comments
 (0)