Wouldn't just replacing the onclick javascript code from
Code:
onclick="javascript: self.location = '/DEVELOPMENT/xcart/home.php?cat=7&sort=orderby&sort_direction=0'; if (event) event.cancelBubble = true;">
to
Code:
onclick="javascript:history.back()"
for the continue shopping button?
I'm sure sure what your button code is exactly in the version you are using but it worked great in 4.1.8 and I was going to edit it in my 4.4.5 test version as well to see if it works.