diff --git a/docs/releases.md b/docs/releases.md index 70b4171c..99544d38 100644 --- a/docs/releases.md +++ b/docs/releases.md @@ -1669,7 +1669,8 @@ and the [ntfy Android app](https://github.com/binwiederhier/ntfy-android/release **Bug fixes + maintenance:** -* Web: Fix markdown message line height to match plain text (1.5 instead of 1.2) ([#1139](https://github.com/binwiederhier/ntfy/issues/1139), thanks to [@etfz](https://github.com/etfz)) +* Web: Fix Markdown message line height to match plain text (1.5 instead of 1.2) ([#1139](https://github.com/binwiederhier/ntfy/issues/1139), thanks to [@etfz](https://github.com/etfz)) +* Web: Use full URL in curl example on empty topic pages ([#1435](https://github.com/binwiederhier/ntfy/issues/1435), [#1535](https://github.com/binwiederhier/ntfy/pull/1535), thanks to [@elmatadoor](https://github.com/elmatadoor) for reporting and [@jjasghar](https://github.com/jjasghar) for the PR) * Web: Add validation feedback for service URL when adding user ([#1566](https://github.com/binwiederhier/ntfy/issues/1566), thanks to [@jermanuts](https://github.com/jermanuts)) * Docs: Remove obsolete `version` field from docker-compose examples ([#1333](https://github.com/binwiederhier/ntfy/issues/1333), thanks to [@seals187](https://github.com/seals187) for reporting and [@cyb3rko](https://github.com/cyb3rko) for fixing) -* Docs: Fix Kustomize config - correct volumeMount path and volumes indentation ([#1367](https://github.com/binwiederhier/ntfy/issues/1367), thanks to [@toby-griffiths](https://github.com/toby-griffiths)) +* Docs: Fix Kustomize config in installation docs ([#1367](https://github.com/binwiederhier/ntfy/issues/1367), thanks to [@toby-griffiths](https://github.com/toby-griffiths)) diff --git a/web/src/components/Notifications.jsx b/web/src/components/Notifications.jsx index fba4ba61..d3699102 100644 --- a/web/src/components/Notifications.jsx +++ b/web/src/components/Notifications.jsx @@ -33,7 +33,7 @@ import { maybeActionErrors, openUrl, shortUrl, - topicShortUrl, + topicUrl, unmatchedTags, } from "../app/utils"; import { formatMessage, formatTitle, isImage } from "../app/notificationUtils"; @@ -588,7 +588,7 @@ const UserAction = (props) => { const NoNotifications = (props) => { const { t } = useTranslation(); - const topicShortUrlResolved = topicShortUrl(props.subscription.baseUrl, props.subscription.topic); + const topicUrlResolved = topicUrl(props.subscription.baseUrl, props.subscription.topic); return ( @@ -601,7 +601,7 @@ const NoNotifications = (props) => { {t("notifications_example")}:
{'$ curl -d "Hi" '} - {topicShortUrlResolved} + {topicUrlResolved} @@ -614,7 +614,7 @@ const NoNotifications = (props) => { const NoNotificationsWithoutSubscription = (props) => { const { t } = useTranslation(); const subscription = props.subscriptions[0]; - const topicShortUrlResolved = topicShortUrl(subscription.baseUrl, subscription.topic); + const topicUrlResolved = topicUrl(subscription.baseUrl, subscription.topic); return ( @@ -627,7 +627,7 @@ const NoNotificationsWithoutSubscription = (props) => { {t("notifications_example")}:
{'$ curl -d "Hi" '} - {topicShortUrlResolved} + {topicUrlResolved}