Better 'current category' detection. Adds categorypage parameter to widget