Adding support for # relative urls