fixed a bug with links starting with "/"

This patch was in a bugreport in the old enfcs project on the Google Code project but didn't make it through shift to github.
Got the patch now from https://build.opensuse.org/request/show/245515