Skip to content

Commit

Permalink
change confirmation dialog prior to redirecting user
Browse files Browse the repository at this point in the history
  • Loading branch information
jacklynhma committed Dec 14, 2024
1 parent c946371 commit 027c89d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/dashboards/_subject.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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}" }
)
%></p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/profiles/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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}" }
)
%>
</p>
Expand Down

0 comments on commit 027c89d

Please sign in to comment.