Fix typos in HTML target attributes

In some places, we were using `blank` instead of `_blank`. Most browsers
treat `blank` like `_blank`, though, so most people didn't experience
any difference.

In another place, we were incorrectly passing the `target` option inside
an `options:` hash, resulting in invalid HTML.
This commit is contained in:
Javi Martín
2023-10-05 20:46:01 +02:00
parent cdc5e05d48
commit 0b0cbcfe5a
6 changed files with 11 additions and 11 deletions

View File

@@ -99,8 +99,8 @@
<%= f.check_box :terms_of_service,
title: t("form.accept_terms_title"),
label: t("form.accept_terms",
policy: link_to(t("form.policy"), "/privacy", target: "blank"),
conditions: link_to(t("form.conditions"), "/conditions", target: "blank")) %>
policy: link_to(t("form.policy"), "/privacy", target: "_blank"),
conditions: link_to(t("form.conditions"), "/conditions", target: "_blank")) %>
</div>
<% end %>