I have a hyperlink in an email which will open an opportunity using the standard opportunity page. Before the opportunity page is open I want to carry out some business logic. I only want this business logic to be executed when the hyperlink is clicked in the email. If someone hits the opportunity any other way without hitting URL in the email, I do not want this particular business logic to execute.
My intended approach to do this is send the URL in the email to another page, carry out the business logic in a back end controller and then return a redirect to the opportunity page.
I want to use this approach as I was don't want a custom controller for the opportunity. I want to leave that all alone.
Is it possible to do redirects in force.com?