dailybruin / gryphondor

Daily Bruin's old WordPress theme and special projects
2 stars 2 forks source link

Pagination prev/next links have two slashes in the URL instead of one #71

Open liddiard opened 10 years ago

liddiard commented 10 years ago

E.g., http://dailybruin.com/category/news//page/2 Also happens on tags and author pages.

This can cause unexpected behavior because the URLs are technically invalid. WordPress's URL resolution algorithm usually resolves them correctly, but there are certain cases where non-pagination URLs have similar schemes, and this can cause the invalid pagination URLs to jump to an article instead of the expected behavior.

The reverse of commit df854e1ba159e0ba40d52b87ea3815da3cb91f54 fixed this issue, but caused a missing slash on search results pagination URLs which caused similar unexpected behavior.