Skip to content

Commit 5eb2b25

Browse files
authored
fix: don't treat absolute URLs as relative (#585)
1 parent f06a15f commit 5eb2b25

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

i18n/en.pot

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ msgstr ""
55
"Content-Type: text/plain; charset=utf-8\n"
66
"Content-Transfer-Encoding: 8bit\n"
77
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
8-
"POT-Creation-Date: 2025-02-25T12:57:55.704Z\n"
9-
"PO-Revision-Date: 2025-02-25T12:57:55.704Z\n"
8+
"POT-Creation-Date: 2025-03-14T20:01:56.339Z\n"
9+
"PO-Revision-Date: 2025-03-14T20:01:56.340Z\n"
1010

1111
msgid ""
1212
"Your session has expired. Please refresh the page and login before trying "
@@ -30,9 +30,6 @@ msgstr "Last updated {{relativeTime}}"
3030
msgid "First published {{relativeTime}}"
3131
msgstr "First published {{relativeTime}}"
3232

33-
msgid "by {{- developer}}"
34-
msgstr "by {{- developer}}"
35-
3633
msgid "Open"
3734
msgstr "Open"
3835

@@ -90,12 +87,6 @@ msgstr "Uninstall v{{appVersion}}"
9087
msgid "Channel"
9188
msgstr "Channel"
9289

93-
msgid "Version"
94-
msgstr "Version"
95-
96-
msgid "Upload date"
97-
msgstr "Upload date"
98-
9990
msgid "Installed"
10091
msgstr "Installed"
10192

@@ -193,10 +184,6 @@ msgstr ""
193184
"Installed apps have access to your DHIS2 data and metadata. Make sure you "
194185
"trust an app before installing it."
195186

196-
msgctxt "developer of application"
197-
msgid "by {{- developer}}"
198-
msgstr "by {{- developer}}"
199-
200187
msgctxt "AppHub release channel"
201188
msgid "Channel"
202189
msgstr "Channel"

src/get-app-icon-src.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ export const getAppIconSrc = (app) => {
33
(iconSize) => iconSize in app.icons
44
)
55
if (iconSize) {
6+
if (/^https?:\/\//.test(app.icons[iconSize])) {
7+
return app.icons[iconSize]
8+
}
69
return `${app.baseUrl}/${app.icons[iconSize]}`
710
}
811
return null

0 commit comments

Comments
 (0)