Rewrite # links in injected content to source URL