Skip to content

Commit

Permalink
fix: ensure https on URL
Browse files Browse the repository at this point in the history
  • Loading branch information
mvarendorff committed Jan 5, 2024
1 parent 6ee6d37 commit 5ab54bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/cms/src/collections/groupchats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ export const Groupchats: CollectionConfig = {
return `https://${value}`;
}

if (value?.startsWith('http:')) {
return 'https:' + value.substring(4);
}

return value;
},
],
Expand Down

0 comments on commit 5ab54bf

Please sign in to comment.