33

While I was looking at the new feature I discovered (post timeline), I took a look at all the features that come with a post:

  • See post revisions using https://stackoverflow.com/posts/PostId/revisions;
  • See post timeline using https://stackoverflow.com/posts/PostId/timeline;
  • (Maybe other features that I don't know about yet).

Given that, I'm a bit surprised that the URL https://stackoverflow.com/posts/PostId/ leads to a 404 and I find it a bit misleading...

Shouldn't it redirect to the corresponding Q/A? Or indicate that the post exists and provide links to the features named above?

12
  • 13
    the q/ and a/ directories seem to automatically re-direct so I don't see why the posts/ one can't do that also. Commented Mar 3, 2016 at 11:46
  • It might be a endpoint that is only accessible for moderators. I recall having asked that same question before somewhere in chat to a mod but I can't find it anymore and I forgot the answer...
    – rene
    Commented Mar 3, 2016 at 13:29
  • @rene I don't believe that's the case. Commented Mar 3, 2016 at 17:50
  • 1
    Thanks @JeremyBanks now I will try to remember that ...
    – rene
    Commented Mar 3, 2016 at 17:51
  • 1
    @MacroMan That would be sensible, but FWIW q/, a/, and u/ exist only as redirects, they don't have any other purposes like posts/.... Commented Mar 3, 2016 at 17:51
  • 3
    @rene - it 404's for moderators too.,
    – ChrisF Mod
    Commented Mar 3, 2016 at 21:52
  • 1
    Huh .. never about the "timeline" view, so thanks for that. Learn something new ...
    – Leigh
    Commented Mar 4, 2016 at 4:28
  • @rene If it were an endpoint only for moderators, it would be a 401 NOT AUTHORIZED not a 404 NOT FOUND.
    – corsiKa
    Commented Mar 4, 2016 at 16:26
  • 2
    @corsiKa are you sure? I always thought that the team decided to return always 404 to not give away possible endpoints. On SE sites you should never get a 401 ...
    – rene
    Commented Mar 4, 2016 at 17:45
  • @rene if they decided that, that's a poor decision. There is no "possible endpoint" that they should need to hide.
    – corsiKa
    Commented Mar 4, 2016 at 17:48
  • @corsiKa related: meta.stackexchange.com/questions/132892/…
    – rene
    Commented Mar 4, 2016 at 18:58
  • @MacroMan /q/ and /a/ are not directories; they're routes. In fact, almost all URLs you can see and touch on the site are routes and do not correspond to any real path structure. Thus, the main reason /posts/$postId 404s is simply that there's no route for it. Commented Mar 6, 2016 at 5:15

0

You must log in to answer this question.

Browse other questions tagged .