Looking at the core.paginate.php file, I see there’s a config var for setting up prefixes and suffixes for URLs. I’ve looked at this code and a few of the related files for pagintation, and while I can get the URL structure correct, the pagination does not work anymore.
My URL structures are setup like this:
domain.com/blog/ (lists all the articles)
domain.com/blog/hello-world/ (an individual article)
domain.com/blog/category/test/ (a category page)
And then pages of course are setup like this:
domain.com/blog/P10/
The problem is, I have to use conditionals to check the URL segment so I can display the appropriate information, and since the conditionals don’t allow for regular expressions (booo), I need the pagination URL structure to be like this instead:
domain.com/blog/page/10/
Any clues on what files I’m maybe not editing or if there’s an easier way to do this?