i thought, you are using openacs 5.2? the code above is from 5.3....
the code in the search package is not from me. Apparently it is broken. When a package_id is passed in, it should be passed to next etc. as well.
The code works better, if you comment out 'set search_package_id ""' in the cited code. With this change the package_id is passed correctly in the "next" link, but still not in the link for page 2 etc. is missing.
maybe dave can comment on this.