WordPress / wporg-main-2022

A block-based child theme for WordPress.org, plus local environment
64 stars 26 forks source link

Add trailing slash to `remembers-list` profile URLs #356

Closed ironprogrammer closed 9 months ago

ironprogrammer commented 9 months ago

The profile page links emitted by the remembers-list block don't have a trailing slash, yielding e.g. https://profiles.wordpress.org/viper007bond.

In order to mitigate a redirect when accessing the profile, this PR adds a trailing slash, e.g. https://profiles.wordpress.org/viper007bond/. The URL is composed with sprintf for readability to see where the profile name substitution occurs.

How to test the changes in this Pull Request:

  1. Load the /remembers/ page.
  2. Observe the profile link HREFs for each name. They should each have a trailing slash after the username.