app
This commit is contained in:
@@ -610,9 +610,10 @@ function openCalendarClient() {
|
||||
function normalizeCalendarSubscription(value: any) {
|
||||
if (!value?.feedPath) return value
|
||||
const configuredBase = String(http.defaults.baseURL ?? '/api')
|
||||
const publicBase = import.meta.env.VITE_PUBLIC_BASE_URL ?? window.location.origin
|
||||
const apiBase = new URL(
|
||||
configuredBase.endsWith('/') ? configuredBase : `${configuredBase}/`,
|
||||
window.location.origin,
|
||||
publicBase,
|
||||
)
|
||||
const feedUrl = new URL(value.feedPath, apiBase).toString()
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user