Browser back button – behavior on gray area changes (ie. list/grid view)

As in this research mentions, you should not break the back button (and Nielsen said it as well).

My question is in regard to 2 separate edge cases:

From the homepage you search on an e-commerce site for 'blue shoes'.

  1. You change the view from list to grid view and then click the browser back button.
  2. You change the listings from 24 to 48 per page and then click the browser back button.

Should the back button in each case reset the change in view, or bring you back to the homepage?