#6353 closed defect (bug) (fixed)
BuddyPress navigation appends a trailing slash to the link in a subnav item when link is forced
Reported by: | pareshradadiya | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 2.3 | Priority: | normal |
Severity: | normal | Version: | 2.2.1 |
Component: | Core | Keywords: | has-patch |
Cc: |
Description
As described in summary link has a trailing slash http://example.com/foo/bar/blah/?action=edit&id=30/. So when i do
$_REQUEST['id']
it give me 30/. Url should be like this http://example.com/foo/bar/blah/?action=edit&id=30
Attachments (1)
Change History (8)
#1
@
9 years ago
- Summary changed from BuddyPress navigation appends a trailing slash to the link in a subnav item when like is forced to BuddyPress navigation appends a trailing slash to the link in a subnav item when link is forced
#2
@
9 years ago
- Milestone changed from Awaiting Review to 2.3
Thanks for the report and for the patch. I think this is a good call - when plugin registers its own link
, we should leave it up to the plugin author to ensure that it's trailingslashed. (Side note: this is a good reminder that trailingslashit()
is not a very sophisticated function. A "trailingslashit-for-URLs" would be properly sensitive to query params.)
#5
@
9 years ago
Also, thanks for the security enhancement of esc_url_raw()
, though in this case I believe we should be using esc_url()
, because we want to encode URL entities.
Path and php unit testcases