Skip to content

Commit 02291f3

Browse files
authored
feat: Remove forgotten address link in error page (#4666)
The forgotten address link made sense when people were typing their instance address by themselves. Now, with the SSO login, people won't access their instance in this manner most of the time. Besides, the URL was hardcoded. It was out-of-date for our SaaS offer and irrelevant to other installations.
2 parents 8b902aa + bac889d commit 02291f3

File tree

7 files changed

+882
-903
lines changed

7 files changed

+882
-903
lines changed

assets/locales/en.po

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,9 +464,6 @@ msgstr "Go to the home"
464464
msgid "Error Application not found Button"
465465
msgstr "Install this application"
466466

467-
msgid "Error Address forgotten"
468-
msgstr "I have forgotten my address"
469-
470467
msgid "Error Learn more"
471468
msgstr "Learn more:"
472469

assets/locales/fr.po

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -532,9 +532,6 @@ msgstr "Retourner à l’accueil"
532532
msgid "Error Application not found Button"
533533
msgstr "Installer cette application"
534534

535-
msgid "Error Address forgotten"
536-
msgstr "J'ai oublié mon adresse"
537-
538535
msgid "Error Learn more"
539536
msgstr "En savoir plus :"
540537

assets/locales/nl_NL.po

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,9 +448,6 @@ msgstr "Ga naar je startpagina"
448448
msgid "Error Application not found Button"
449449
msgstr "Deze app installeren"
450450

451-
msgid "Error Address forgotten"
452-
msgstr "Ik ben mijn adres vergeten"
453-
454451
msgid "Error Learn more"
455452
msgstr "Meer informatie:"
456453

assets/locales/ru.po

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -515,9 +515,6 @@ msgstr "Вернуться на главную"
515515
msgid "Error Application not found Button"
516516
msgstr "Установить это приложение"
517517

518-
msgid "Error Address forgotten"
519-
msgstr "Я забыл мой адрес"
520-
521518
msgid "Error Learn more"
522519
msgstr "Узнать больше:"
523520

assets/locales/vi.po

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,9 +466,6 @@ msgstr "Về trang chủ"
466466
msgid "Error Application not found Button"
467467
msgstr "Cài đặt ứng dụng này"
468468

469-
msgid "Error Address forgotten"
470-
msgstr "Tôi đã quên địa chỉ Twake của mình"
471-
472469
msgid "Error Learn more"
473470
msgstr "Tìm hiểu thêm:"
474471

web/errors/errors.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,12 @@ func HTMLErrorHandler(err error, c echo.Context) {
147147

148148
inverted := false
149149
illustration := "/images/generic-error.svg"
150-
var link, linkURL, button, buttonURL string
150+
var button, buttonURL string
151151

152152
switch err {
153153
case instance.ErrNotFound:
154154
inverted = true
155155
illustration = "/images/desert.svg"
156-
link = "Error Address forgotten"
157-
linkURL = "https://manager.cozycloud.cc/v2/cozy/remind"
158156
case app.ErrNotFound:
159157
illustration = "/images/desert.svg"
160158
}
@@ -169,8 +167,6 @@ func HTMLErrorHandler(err error, c echo.Context) {
169167
"Illustration": illustration,
170168
"ErrorTitle": title,
171169
"Error": value,
172-
"Link": link,
173-
"LinkURL": linkURL,
174170
"SupportEmail": i.SupportEmailAddress(),
175171
"SupportPageURL": i.SupportPageURL(),
176172
"Button": button,

web/statik/statik.go

Lines changed: 881 additions & 883 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)