diff options
author | Raphael Kabo <mail@raphaelkabo.com> | 2022-04-24 14:14:46 +0100 |
---|---|---|
committer | Raphael Kabo <mail@raphaelkabo.com> | 2022-04-24 14:14:46 +0100 |
commit | e382e691aa2ef52af5245b6f3279f5cf6c8ed157 (patch) | |
tree | 1ef476d26b3fe8753e13495f478afbaaa9c3f738 | |
parent | 0bf9e7d921a8725cc56e0741022a7510a3b025ce (diff) |
fix: Debug ICS feed frontend display
-rw-r--r-- | helpers.js | 3 | ||||
-rwxr-xr-x | views/event.handlebars | 2 | ||||
-rwxr-xr-x | views/eventgroup.handlebars | 6 |
3 files changed, 5 insertions, 6 deletions
@@ -21,7 +21,6 @@ function addToLog(process, status, message) { function exportIcal(events, calendarName) { // Create a new icalGenerator... generator const cal = icalGenerator({ - domain: domain, name: calendarName || siteName, x: { 'X-WR-CALNAME': calendarName || siteName, @@ -44,7 +43,7 @@ function exportIcal(events, calendarName) { email: event.creatorEmail || 'anonymous@anonymous.com', }, location: event.location, - url: domain + '/' + event.id + url: 'https://' + domain + '/' + event.id }); }); // Stringify it! diff --git a/views/event.handlebars b/views/event.handlebars index 6f13c38..1a3fb17 100755 --- a/views/event.handlebars +++ b/views/event.handlebars @@ -66,7 +66,7 @@ <span class="fa-li"> <i class="fas fa-fw fa-share-square"></i> </span> - <a href="https://{{domain}}/{{eventData.id}}">{{domain}}/{{eventData.id}}</a> + <a href="https://{{domain}}/{{eventData.id}}">https://{{domain}}/{{eventData.id}}</a> <button type="button" id="copyEventLink" class="eventInformationAction btn btn-outline-secondary btn-sm" data-clipboard-text="https://{{domain}}/{{eventData.id}}"> <i class="fas fa-copy"></i> Copy </button> diff --git a/views/eventgroup.handlebars b/views/eventgroup.handlebars index e659915..d9179d1 100755 --- a/views/eventgroup.handlebars +++ b/views/eventgroup.handlebars @@ -51,7 +51,7 @@ <span class="fa-li"> <i class="fas fa-share-square"></i> </span> - <a href="https://{{domain}}/group/{{eventGroupData.id}}">{{domain}}/group/{{eventGroupData.id}}</a> + <a href="https://{{domain}}/group/{{eventGroupData.id}}">https://{{domain}}/group/{{eventGroupData.id}}</a> <button type="button" id="copyEventLink" class="eventInformationAction btn btn-outline-secondary btn-sm" data-clipboard-text="https://{{domain}}/group/{{eventGroupData.id}}"> <i class="fas fa-copy"></i> Copy </button> @@ -61,10 +61,10 @@ <i class="fas fa-rss"></i> </span> <a - href="/group/{{eventGroupData.id}}/feed.ics">{{domain}}/group/{{eventGroupData.id}}/feed.ics</a> + href="https://{{domain}}/group/{{eventGroupData.id}}/feed.ics">https://{{domain}}/group/{{eventGroupData.id}}/feed.ics</a> <button type="button" id="copyFeedLink" class="eventInformationAction btn btn-outline-secondary btn-sm" - data-clipboard-text="{{domain}}/group/{{eventGroupData.id}}/feed.ics"> + data-clipboard-text="https://{{domain}}/group/{{eventGroupData.id}}/feed.ics"> <i class="fas fa-copy"></i> Copy </button> </li> |