Sending appropriaate url to background when opening link in new tab