rewrite sidebar links