#5572 closed defect (bug) (fixed)
Plugin FAQ anchor links get broken when used in a forum post
Reported by: | johnbillion | Owned by: | dd32 |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Support Forums | Keywords: | |
Cc: |
Description
I've noticed that when I copy a URL to a plugin FAQ and paste it in a support forum reply, it gets broken. The copied link is correct and works, it just gets mangled when saved in the forum reply.
Latest example here: https://wordpress.org/support/topic/tracking-user-switching/#post-13898580
This is an affected link, seems to work okay in Trac: https://wordpress.org/plugins/user-switching/#%0Aare%20any%20plugin%20actions%20called%20when%20a%20user%20switches%20account%3F%0A
Change History (5)
Note: See
TracTickets for help on using
tickets.
The forum is stripping the
%0A
encoded character at the beginning and end of the fragment in the URL.%0A
is the encoded newline character. I think the forum is correct, here, and the fix should be applied to the plugin pages totrim()
the FAQ titles before encoding/escaping the URL.