Get url page via twig


I have a URL: /7.0/7.1/7.1.1/, but trying to access “” via twig. The


Outputs the entire path.


You want to output the page slug:


I ended up using:


since in needed the actual URI that was passed. I am using this on the page, so I couldn’t use the slug because it would always show up as “error”