discourse/app
Matt Marjanović aa4ff47208
FEATURE: Allow target attribute in links in user_field descriptions (#19102)
This change adds `target` to the set of attributes allowed by the
HTML sanitizer which is applied to the description of a user_field.

The rationale for this change:

 * If one puts a link (<a>...</a>) in the description of a user_field
   that is present and/or required at sign-up, the expectation is that
   a prospective new user will click on that link during sign-up.
 * Without an appropriate `target` attribute on the link, the new page
   will be loaded in the same window/tab as the sign-up form, but this
   will obliterate any fields that the user had already filled-out on
   the form.  (E.g., hitting the back-button will return to an
   empty form.)
 * Such UX behavior is incredibly aggravating to new users.

This change allows an admin to add a `target` attribute to links, to
instruct the browser to open them in a different window/tab, leaving
a sign-up form intact.
2023-01-06 10:18:35 -03:00
..
assets PR reviews 2023-01-06 09:51:46 +08:00
controllers SECURITY: Don't expose user post counts to users who can't see the topic (#19728) 2023-01-05 06:08:19 +08:00
helpers FEATURE: Optionally allow a separate s3_asset_cdn_url to be specified (#19284) 2022-12-08 10:36:20 +00:00
jobs SECURITY: BCC active user emails from group SMTP (#19725) 2023-01-05 06:07:50 +08:00
mailers FIX: Improve tags in email subjects and add filter headers (#19760) 2023-01-06 10:03:02 +10:00
models FEATURE: Allow target attribute in links in user_field descriptions (#19102) 2023-01-06 10:18:35 -03:00
serializers FIX: Link to category settings should use slug 2023-01-06 08:42:26 +08:00
services PERF: Use user-specific channel for message-bus logout (#19719) 2023-01-04 19:55:52 +00:00
views FIX: Broken images on subfolder installs (#19404) 2022-12-09 11:24:12 -07:00