#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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.3 |
| Component: | Core | Version: | 2.2.1 |
| Severity: | normal | 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
@
11 years ago
- Summary BuddyPress navigation appends a trailing slash to the link in a subnav item when like is forced → BuddyPress navigation appends a trailing slash to the link in a subnav item when link is forced
#2
@
11 years ago
- Milestone Awaiting Review → 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.)
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Path and php unit testcases