88

It's well-known that for logged-out users, duplicate questions with no answers redirect to their duplicate target (see Why do links to duplicate question automatically redirect to the duplicate? and Why do dupe questions automatically redirect when logged out?). I've found an edge case where this shouldn't happen, though:

Consider this question. It's been marked as a duplicate of this one. The dupe still exists (for now), but the target has been deleted. If a logged-out user visits the former link, they'll be shown the "Page not found" message, which is certainly not more useful than being shown the still-extant duplicate. In cases like this, shouldn't we instead just show them the duplicate, rather than sending them to an even less useful page?

(Credit to Laurel for pointing me to this query, to find a new example after my original was broken.)

15
  • 10
    I thought deletion wasn't supposed to be possible if the question was a duplicate target...
    – user4639281
    Commented Jun 30, 2019 at 1:23
  • 26
    @TinyGiant The auto-delete system still doesn't pay attention to that criteria.
    – animuson StaffMod
    Commented Jun 30, 2019 at 5:14
  • 6
    Try this query. With it, you can find many other duplicates of deleted questions, like this one.
    – Laurel
    Commented Jun 30, 2019 at 20:27
  • 3
    Lil' note: This does not only apply to logged-out users; it's also goes for logged-in users <10k. Commented Jul 1, 2019 at 7:22
  • 2
    @geisterfurz007: I've never seen this behavior while logged-in. Commented Jul 1, 2019 at 7:43
  • 6
    @geisterfurz007 They are talking about redirects not the ability to see deleted questions, logged in users do not get force redirected to the duplicate target.
    – EpicKip
    Commented Jul 1, 2019 at 7:54
  • 2
    Oooooooooooh! Sorry; I didn't even know that was a thing. Thanks for clarifying :) Yeah I just read the first paragraph again... I must have missed that ^^" Commented Jul 1, 2019 at 8:19
  • 3
    Here's a somewhat fancier version of @Laurel's query. (Unfortunately it's also somewhat slower, mostly because it does a series of rather inefficient cross-site queries to filter out duplicates of migrated questions.) Commented Jul 1, 2019 at 10:23
  • 3
    I would argue that this is not a well-known fact: I've been here for years, and never heard about it! (And I lurk in meta pretty frequently). This is not really important for the point in the question, though. Commented Jul 1, 2019 at 13:26
  • 1
    @animuson isn't that something that should be addressed? Considering the question in example right now, having it marked as duplicate is pretty useless if the target is deleted.
    – bracco23
    Commented Jul 1, 2019 at 15:46
  • 1
    How did that dupe ever get created? The dupe target has no answers.
    – Joshua
    Commented Jul 1, 2019 at 17:03
  • 1
    @Joshua Because the same person asked both the duplicate and the target. Commented Jul 1, 2019 at 18:24
  • Redirecting seems like a dumb idea to begin with. Wouldn't be surprised if it hurts SEO.
    – jpmc26
    Commented Jul 2, 2019 at 5:11
  • 1
    Does SO care about logged out users?. On a more serious note. This needs to be fixed :)
    – MattR
    Commented Jul 2, 2019 at 19:15
  • @Joshua A dupe target doesn't need answers when the same users asks the same question multiple times. That's also not a new rule.
    – Tom
    Commented Jul 3, 2019 at 9:07

1 Answer 1

8

As of today, anonymous visits to unanswered duplicates where all targets have been deleted will no longer redirect. There are currently 21 such questions on Stack Overflow.

Along with this change, anonymous visits to unanswered duplicates with multiple targets where all but one are deleted now will redirect to the sole remaining undeleted original. There are currently 35 such questions on Stack Overflow.

TODO: figure out what to do with duplicates when their target(s) are deleted. There are currently 800-some such questions on Stack Overflow.

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .