Fix active page macro to work with url_for.