Drupal 8/9 add body class for the current page based on url alias

To add a body class as per the node path respective to the url alias of node id, we have to add the path alias variables. This snippet fills the requirement.
copy-icon

Comments

Authors

Read Next