Reproduce:
With the linkit create link to the taxonomy term which is one of forum containers or forums taxonomy terms.
For example [path:internal:taxonomy/term/122]
Result:
On the saved page user see unaliased link to the http://domain.com/taxonomy/term/122
Where are next errors appear on the http://domain.com/taxonomy/term/122 page:
* warning: Illegal offset type in isset or empty in /home/data/www/includes/path.inc on line 65.
* warning: Illegal offset type in /home/data/www/includes/path.inc on line 70.
* warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/data/www/includes/bootstrap.inc on line 840.
* warning: Illegal offset type in isset or empty in /home/data/www/includes/path.inc on line 65.
* warning: Illegal offset type in /home/data/www/includes/path.inc on line 70.
* warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/data/www/includes/bootstrap.inc on line 840.
* warning: Illegal offset type in isset or empty in /home/data/www/includes/path.inc on line 65.
* warning: Illegal offset type in /home/data/www/includes/path.inc on line 70.
* warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/data/www/includes/bootstrap.inc on line 840.
Expected result:
Module must create aliased link to the forum container or forum inside container.
Comment | File | Size | Author |
---|---|---|---|
#9 | linkit_taxonomy.908466.D7patch.patch | 822 bytes | anon |
#6 | linkit_taxonomy.module.patch | 2.33 KB | anon |
Comments
Comment #1
anonI have tried this now, but I dont get any errors at all.
Link to forum containers and forums taxonomy terms works fine for me.
Please try again and post the result here, Thanks.
Comment #2
anonComment #3
anonI think this is a pathfilter or pathologic bug.
The links shouldnt be going to http://domain.com/taxonomy/term/122 at all.
It should be something like http://domain.com/forum/122
Feel free to open again if you think Im wrong.
Comment #4
yched CreditAttribution: yched commentedThe issue is that linkit hardcodes taxo links as 'taxonomy/term/[tid]'.
That is not correct. The path of a term page is given by taxonomy_term_path(). By default, this is 'taxonomy/term/[tid]', but not always - and, specifically, *not* for forum terms.
Comment #5
anongood point!
Comment #6
anonOk, I have commited this patch now.
This still needs to be fixed for the 7.x-1.x-dev also.
Comment #7
anonComment #8
yched CreditAttribution: yched commentedWow, that was quick :-) Thanks !
(didn't have time to actually play with the fixed code yet)
Note that taxonomy_term_path() is gone in D7.
URI paths for taxonomy terms are now retrieved by
entity_uri('taxonomy_term', $term)
Comment #9
anonCommited this patch to 7.X.
Comment #10
anon