Fix #333

* Use last_search in session instead of relying on referrer
Merge pull request #337 from ophrescue/issue/333-adoption-back-link

Fixed #333  Thanks, merged!