update get_log_link to correct behaviour for url format