I attempted to extract the routeName from the URL in order to apply a different class to the body's layout when on the /Category page.
https://i.stack.imgur.com/J0hsp.png
@{string classContent = Request.QueryString["routeName"] != "/Category" ? "container" : "";};
<div id="Content" class="body-wrapper @classContent">
The issue I am facing is that Request.QueryString["routeName"] always returns empty and I cannot determine why.
Can anyone explain why it remains empty or suggest a better method for assigning a different class based on the current page?