Special case for page number 2

Hi,
in case of page number 2 it would be better to take the original url of category page instead of "?p=1". I´ve made it with a simple search/replace - could made with the ulr from controller.
Thanks
Oliver