Added return link differentiation for app vs. website

- If &app=1 is added to the URL, the return link will go back to the
session page within the app.