Allow return to home from error page

DIR_REL is often empty, and so the href attribute will be empty.
Using adding BASE_URL correctly allows returning to homepage.
Merge pull request #884 from mlocati/patch-63

Allow return to home from error page