Fixed getReplayUriRef() to work with relative or absolute URLs