The "Continue Shopping" link on Shopify's cart page is fixed to "collections/all." Since there are many cases where customers want to return to a previous page, such as during shopping, it's a good idea to link to the previous page.
How to set the "Continue Shopping" link on the cart screen of the Shopify theme "Dawn" to go to the previous screen

[(For the Dawn theme) How to set it up] Add the code to "sections/main-cart-items.liquid"

