Opened 15 years ago
Closed 15 years ago
#11179 closed defect (bug) (fixed)
get_term_link returns a bad link for custom taxonomies
Reported by: | bookchiq | Owned by: | filosofo |
---|---|---|---|
Milestone: | 2.9 | Priority: | normal |
Severity: | normal | Version: | 2.8.5 |
Component: | Taxonomy | Keywords: | |
Focuses: | Cc: |
Description
When I create a list of custom taxonomy members in the Loop using get_the_term_list, the links that are created are missing a slash.
I've tracked this back to the get_term_link function, specifically the following line:
$termlink = get_option('home') . user_trailingslashit($termlink, 'category');
As best I can figure, this should read:
$termlink = get_option('home') . '/' . user_trailingslashit($termlink, 'category');
More details on how this shows up...
- My base URL: http://192.168.2.99/wp
- The taxonomy I'm testing: colors
- The term I'm testing: brown
- The bad URL produced by get_term_link: http://192.168.2.99/wpcolors/brown
- The URL that should be produced: http://192.168.2.99/wp/colors/brown
Change History (3)
Note: See
TracTickets for help on using
tickets.
Further testing reveals this to only be an issue when using the default (non-pretty) permalink settings.