|
64 | 64 | {% block node_public_urls %} |
65 | 65 | {# Only add preview/see button for Reachable node-types #} |
66 | 66 | {% if source and source.Reachable %} |
67 | | - {% if bags.settings.get('custom_public_scheme') %} |
| 67 | + {% if custom_public_scheme %} |
68 | 68 | {% set publicUrl = url(source, { |
69 | | - 'canonicalScheme': bags.settings.get('custom_public_scheme'), |
| 69 | + 'canonicalScheme': custom_public_scheme, |
70 | 70 | '_no_cache': 1 |
71 | 71 | }) %} |
72 | 72 | {% else %} |
|
83 | 83 | </a> |
84 | 84 | {% endif %} |
85 | 85 | {% if node.published or node.draft or node.pending %} |
86 | | - {% if bags.settings.get('custom_preview_scheme') %} |
| 86 | + {% if custom_preview_scheme %} |
87 | 87 | {% set previewUrl = url(source, { |
88 | | - 'canonicalScheme': bags.settings.get('custom_preview_scheme'), |
| 88 | + 'canonicalScheme': custom_preview_scheme, |
89 | 89 | 'token': createPreviewJwt(), |
90 | 90 | '_no_cache': 1 |
91 | 91 | }) %} |
92 | | - {% elseif bags.settings.get('custom_public_scheme') %} |
| 92 | + {% elseif custom_public_scheme %} |
93 | 93 | {% set previewUrl = url(source, { |
94 | | - 'canonicalScheme': bags.settings.get('custom_public_scheme'), |
| 94 | + 'canonicalScheme': custom_public_scheme, |
95 | 95 | '_preview': 1, |
96 | 96 | 'token': createPreviewJwt(), |
97 | 97 | '_no_cache': 1 |
|
0 commit comments