add option to make local relative redirects
Merge pull request #461 from danikp/fix_edoc

add option to make local relative redirects