Add mask for pages or views

Created on 16 March 2022, about 3 years ago
Updated 7 May 2025, 8 days ago

Problem/Motivation

if I insert a url containing a final *, I expect that the pages starting with that url have changed the "body". This does not happen.
Example, url = "/ example-views *"
I propose modification by adding a condition similar to this below in the page_specific_class.module line 36.
Sorry for the imperfect English. thank you

        // If current path contain *
        if (substr ( $enteredPath , strlen($enteredPath)-1, 1) == '*') {
             if(substr($current_path, 0, strlen($enteredPath)-1) == substr($enteredPath, 0, strlen($enteredPath)-1)){
              foreach ($classes_array as $class) {
                $variables['attributes']['class'][] = Html::cleanCssIdentifier($class, []);
              }
            }
        }
💬 Support request
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇹Italy giannigiusti

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024