Using page_link with pagination causing broken permalinks?
-
I have a page that has pagination at the bottom (next and older).
I’m using page_link to append a query var to links on the page, so a normal link like:
https://liquidchurch.com/messages/
becomes
https://liquidchurch.com/messages/messages-app-view/
This is a conditional appending that occurs only if the current url has the query var /messages-app-view/
If you go to the messages link above with /messages-app-view/ appended and scroll to the bottom you’ll see the pagination controls. Problem is that the query var is being appended before the end of the link, which results in broken navigation.
The pagination link url looks like:
https://liquidchurch.com/messages/messages-app-view/page/2/
When I expect it to look like
https://liquidchurch.com/messages/page/2/messages-app-view/
Is there a way for me to work around this or a better way to accomplish this?
Thanks,
DaveThe page I need help with: [log in to see the link]
- The topic ‘Using page_link with pagination causing broken permalinks?’ is closed to new replies.