diff --git a/themes/piratecare/layouts/session/list.html b/themes/piratecare/layouts/session/list.html
index 1552421..bcee13d 100644
--- a/themes/piratecare/layouts/session/list.html
+++ b/themes/piratecare/layouts/session/list.html
@@ -1,8 +1,12 @@
{{ define "main" }}
-
-
- {{ range .Data.Pages }}
-
+
+ {{ range .Data.Pages }}
+ {{ $relpermalink := "" }}
+ {{ with .Site.Data.myvars.edit }}
+ {{ $relpermalink = printf "%s%s" $relpermalink "_preview" }}
+ {{ end }}
+ {{ $relpermalink = printf "%s%s" $relpermalink .RelPermalink }}
+
{{ end }}
-
+
{{ end }}
diff --git a/themes/piratecare/layouts/topic/list.html b/themes/piratecare/layouts/topic/list.html
index ee812d0..8142731 100644
--- a/themes/piratecare/layouts/topic/list.html
+++ b/themes/piratecare/layouts/topic/list.html
@@ -1,8 +1,12 @@
{{ define "main" }}
-
-
+
{{ range .Data.Pages }}
-
+ {{ $relpermalink := "" }}
+ {{ with .Site.Data.myvars.edit }}
+ {{ $relpermalink = printf "%s%s" $relpermalink "_preview" }}
{{ end }}
-
+ {{ $relpermalink = printf "%s%s" $relpermalink .RelPermalink }}
+
+ {{ end }}
+
{{ end }}