Make a smarty function that can be used in the template to get a good link
Merge pull request #2 from pp-work/test-redirect-fix

Make a smarty function that can be used in the template to get a good link