fix for directory relative links and url fragments (#pagelink)