- Issue created by @johnpicozzi
Was excited to see this module as it solves an issue I have with my views paths. After installing it and configuring a path in the settings section I get the following error on initial page load.
Warning: Undefined array key "page" in Drupal\views_pretty_paths\PathProcessor\ViewsPrettyPathProcessor->preProcessPagerItem() (line 496 of modules/contrib/views_pretty_paths/src/PathProcessor/ViewsPrettyPathProcessor.php).
It would appear that this error has to do with the mini pager. I tested with the pager off (Displaying all items) and the warning went away. I also noticed as I was writing this issue that if you use the filters and go back to the main page the error goes away. It would appear that this issue only happens on initial load.
- Install the module
- Configure the module at the module settings page
- Go to a view page that was configured with mini pager enabled and error appears (both logged in and logged out)
- Worth noting here I am using exposed filters with Better Exposed Filters and my view uses ajax.
If helpful I created a sandbox here to see the error https://prettypaths-johnpicozzi.pantheonsite.io/notebook
Active
1.0
Code