Add support for device-specific long URLs when using Shlink 3.5.0 or newer

This commit is contained in:
Alejandro Celaya
2023-03-13 09:05:54 +01:00
parent fa69c21fa2
commit 4c5d0321d2
4 changed files with 116 additions and 28 deletions

View File

@@ -37,6 +37,7 @@ export const shortUrlDataFromShortUrl = (shortUrl?: ShortUrl, settings?: ShortUr
maxVisits: shortUrl.meta.maxVisits ?? undefined,
crawlable: shortUrl.crawlable,
forwardQuery: shortUrl.forwardQuery,
deviceLongUrls: shortUrl.deviceLongUrls,
validateUrl,
};
};