Adding page filtering on my_badges page. Fix bugs (mostly twig variables not defined on certain circumstances