With module enabled and using the hook_init() method, pager links (first, prev, 1 ,2 ,3 ,4 etc... next, last) on list pages lose their URL aliasing.
For example, say I was on /items/widgets with the TFA module enabled, and with more nodes than could fit in that page being listed.
Were I to hover over the page "4" link, I'd see
/taxonomy/terms/4/all?page=3
rather than
/items/widgets?page=3
The aliased links work, it's just that they're not being used in the pagination. I can type in the /items/widgets?page=3 link manually and get page 4 of a listing of nodes, just as if I were to go to /taxonomy/terms/4/all?page=3
I have tried the hook_link_alter option and it flat out doesn't work for me on Drupal 5.2.
Any ideas?
Comments
Comment #1
c_kais commentedFixed, I think.
I had to theme the pager_link function as follows:
The only change is in the return...
If Taxonomy Forceall is on, strip the "/all" from the url before looking it up in the url alias table (which is what the l() function eventually does). Of course, none of the forced all urls will be in the url alias table because the TFA module tacks on the all...
Comment #2
grah commentedthanks kaiser. your solution works.
i'm aliasing rss feeds and those have also broken down due to TFA. ;/
Comment #3
Z2222 commentedThanks...
This solution works, but it's still broken in the module.
Comment #4
pomliane commentedThis version of Taxonomy Force All is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.
This issue has been automagically closed by a script.