Fixed broken notification redirects when url rewriting is enabled