current_url + relative/absolute links

Added current_url variable and changed handling of relative and
absolute links.