1. Bitbucket
  2. Public Issue Tracker
  3. master
  4. Issues


Issue #3690 wontfix

Report HTTP status 301 for deleted repositories that are being redirected

Martey Dodoo
created an issue

Deleted repository pages seem to return a HTTP status of 404, even if the deleted repository is supposed to redirect to a different URL. It would be great if Bitbucket could return a status of 301 instead, and automatically redirect the user.

Comments (2)

  1. Dylan Etkin

    Hi Martey,

    The reason we provide a 404 and do not automatically redirect is so that users can know that the repo is no longer there and so that we are not doing arbitrary redirects with user provided URL's (we don't want to open any XSS vectors).

    If we return a 301 then I believe the browser should redirect automatically and we don't want to do that for the reasons listed above.



  2. Log in to comment