This is related to Example question links don’t work, but I suspect the root cause is different.
Steps to reproduce:
- Set your question sort order to "Newest" (since other sort orders are broken in other ways when loading question permalinks).
- Navigate to page 2.
- Click the "link" link on any question to obtain and navigate to the permalink URL. Example URL: http://area51.stackexchange.com/proposals/1288/food-and-cooking/2259#2259
- Note that the page reloads, with the proper page and question displayed.
- Edit the resulting URL to remove the slug. Example URL: http://area51.stackexchange.com/proposals/1288/2259#2259
- Navigate to the slugless URL, and note that a page that does not contain the question is displayed.
- (Optional, for extra fun and points!) Edit the URL again, this time removing the proposal number. Example URL: http://area51.stackexchange.com/proposals/2259#2259 - note that this URL will now load the proper page and display the question!
I suspect this is simply an issue with how URLs are parsed: when the slug is omitted, the question number itself is interpreted as the slug, preventing the site from finding the question (and as a result, the page containing it). This wouldn't be so much of a problem, except that the question links on the Reputation tab in user profiles omits the slug!
- Adjust URL parsing to correctly identify the question number on slug-free URLs.
- Adjust the Reputation tab to add a slug (any slug) to the question URLs.
- Hack up the Reputation tab even more, removing the proposal ID entirely and relying on the behavior described in #7 (above) to find both the proposal and page given only a question number.