Summary:
If detailpage param is used, the back link goes back to the wrong page.
Detailed Description:
I have found a problem with the detailpage function.
If I go to to the index page and then click to view a photo from the thumbs,
then it works out fine. If I choose to go back to the thumbs, then it won't use
the template that should be used at that page. Seems like it is using the
"detailpages template" instead.