From 027c89d7eb43074bd5ea51195765cd3b4b66ac41 Mon Sep 17 00:00:00 2001 From: Jacklyn Ma <29336370+jacklynhma@users.noreply.github.com> Date: Sat, 14 Dec 2024 12:48:53 -0500 Subject: [PATCH] change confirmation dialog prior to redirecting user --- app/views/dashboards/_subject.html.erb | 2 +- app/views/profiles/show.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/dashboards/_subject.html.erb b/app/views/dashboards/_subject.html.erb index 8b6b499e525..f774e819177 100644 --- a/app/views/dashboards/_subject.html.erb +++ b/app/views/dashboards/_subject.html.erb @@ -29,7 +29,7 @@ truncate(user.homepage_url, length: 20), h(user.homepage_url), rel: "nofollow", - data: { confirm: "Are you sure?" } + data: { confirm: "You are about to be redirected #{user.homepage_url}" } ) %>

diff --git a/app/views/profiles/show.html.erb b/app/views/profiles/show.html.erb index d634606fdbf..a51f1a62309 100644 --- a/app/views/profiles/show.html.erb +++ b/app/views/profiles/show.html.erb @@ -102,7 +102,7 @@ h(@user.homepage_url), rel: "nofollow", class: "profile__header__attribute t-link--black", - data: { confirm: "Are you sure?" } + data: { confirm: "You are about to be redirected #{@user.homepage_url}" } ) %>