add ref to url