fix security issue in link (#330)

This commit is contained in:
Matti Nannt
2023-05-31 18:22:12 +02:00
committed by GitHub
parent 0f6210c559
commit c4dd7ae4a2
@@ -225,13 +225,13 @@ export default function SurveysList({ environmentId }) {
{survey.type === "link" && survey.status !== "draft" && (
<>
<DropdownMenuItem>
<a
<Link
className="flex w-full items-center"
href={`${window.location.protocol}//${window.location.host}/s/${survey.id}?preview=true`}
target="_blank">
<EyeIcon className="mr-2 h-4 w-4" />
Preview Survey
</a>
</Link>
</DropdownMenuItem>
<DropdownMenuItem>
<button