Pass along url to make result popup work properly with iframes

Fix #2.