Follow-up to r6249: when previewing a ticket, we need to reset the URL to /ticket/xxx, discarding the eventual anchor that might already be present in the URL. Otherwise, we'll be targeted to that anchor and we'll probably miss the top of the page containing the preview and the eventual warnings.