focalboard icon indicating copy to clipboard operation
focalboard copied to clipboard

Bug: Link with specific characters are double encoded

Open roukmoute opened this issue 1 year ago • 4 comments

Steps to reproduce the behavior

  1. Add a comment on a ticket and add a link with spaces or another custom character.
  2. Try with : https://example.com?title=August 1 - 2022 or https://example.com?title=August%201%20-%202022

For the first link, it is cut and it is not possible to use it entirely event if I try to do some markdown.

For the second link, the link is reinterpreted to https://example.com?title=August%25201%2520-%25202022. image

Expected behavior

If I click I must be able to redirect on the same link.

Edition and Platform

  • Edition: Focalboard on Unraid
  • Version: 7.1.0
  • Browser and OS: Firefox

roukmoute avatar Aug 01 '22 10:08 roukmoute

@wuwinson, please investigate the expected behavior. Thanks.

chenilim avatar Aug 01 '22 18:08 chenilim

This can be fixed by unencoding, then encoding.

sbishel avatar Aug 16 '22 21:08 sbishel

Expected behavior:

  1. https://example.com?title=August 1 - 2022 should take user to URL prior to any spacing, in this case it should direct user to https://example.com?title=August
  2. https://example.com?title=August%201%20-%202022 should not encode the '%', and instead direct user to the URL as is.

wuwinson avatar Aug 17 '22 20:08 wuwinson

3: In a markdown link, 1. must be encoded correctly

roukmoute avatar Aug 18 '22 07:08 roukmoute