Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I created page in Panels, In panel pages displayed path.Once Clicks the path displayed the related content(Like Block,Views Content).
But i faced one query here,Please help me..!
My Query:
1. This is my Panel page url (localhost/drupal7/testpage ),here displayed content. But i entered un necessary content in page url like (localhost/drupal7/testpage/abcdefghijk)
localhost/drupal7/testpage/abcdefghijk in the url entered wrong content,still i am getting data. Here i want to go 404 pages.
Attached image for reference.
Please help me friends...!
Thanks..!
Comment | File | Size | Author |
---|---|---|---|
image2.png | 172.17 KB | Siriki | |
image1.png | 169.97 KB | Siriki |
Comments
Comment #2
Siriki CreditAttribution: Siriki commentedComment #3
Siriki CreditAttribution: Siriki commentedComment #4
rashid_786 CreditAttribution: rashid_786 at SDG Corporation commentedIn Drupal if you pass any argument, it takes it as valid argument and doesn't treat as unauthorized arguments. To check this, Inside hook_init() you can call drupal_not_found() within some condition using arg().
Comment #5
Siriki CreditAttribution: Siriki commentedThanks Rashid.
I have to check it.
Comment #6
MingsongI developed a module for this purpose.
https://www.drupal.org/project/ctools_valid_path_arguments