Fix links in sidebar url and the active class