fixed a bug with links to "/"

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.