Fixed broken notification links to user profiles when url rewriting is enabled.