mozilla / sumo

Project management board for SUMO and Community properties.
Mozilla Public License 2.0
14 stars 5 forks source link

Extra space in article links causes the link to break #1710

Closed emilghittasv closed 1 month ago

emilghittasv commented 7 months ago

Describe the bug Initially described in https://support.mozilla.org/en-US/forums/contributors/716898?utm_campaign=forums-thread&utm_source=notification&utm_medium=email

Preconditions Sign in to SUMO

Steps to reproduce Steps to reproduce the behavior:

  1. Access a random KB article.
  2. Click on the "Edit Article" option from the "Editing Tools" sidebar menu.
  3. Inside the content section add a link pointing out to a different kb article & add space right after . Example: [[How to troubleshoot time related errors on secure websites |Test]]
  4. Save the article changes and click on the newly added link.

Expected behavior The extra empty space is ignored and the link redirects the user to the correct article.

Actual behavior The link breaks redirecting the user to the https://support.allizom.org/en-US/kb/new?title=How+to+troubleshoot+time+related+errors+on+secure+websites+ page.

Screencasts extraspacecreatenew

Desktop:

AliceWyman commented 7 months ago

See also https://bugzilla.mozilla.org/show_bug.cgi?id=1867499#c1

akatsoulas commented 1 month ago

PR https://github.com/mozilla/kitsune/pull/6269

emilghittasv commented 1 month ago

I can confirm that this issue is no longer reproducible in stage.

Moving this ticket under the release column.