Skip to content

follow-file-renames directs to 404 due to improper ref in URL #5576

Closed

Description

@ascott18

Please ensure:

  • The bug is caused by Refined GitHub. It doesn't happen if I disable the extension.
  • The bug happens after clearing extension cache. The "Clear cache" button below can also be found at the bottom of the options page.

Example URLs

https://github.com/MicrosoftDocs/azure-docs/commits/main/articles/app-service/tutorial-connect-msi-sql-database.md

Extension version

22.4.1

Browser(s) used

Firefox 99, Chrome 100

Description

The "Older" button directs to the old name of the file, but keeps the ref in the URL as the branch name, rather than switching to the commit hash. Since the old name no longer exists in the branch, the page is a 404.

Expected: "Older" goes to either https://github.com/MicrosoftDocs/azure-docs/commits/ac26f2e50ad4faea4c0240941eb93dbedfd4e9ec/articles/app-service/tutorial-connect-msi-sqldatabase.md (the last commit on the page) or https://github.com/MicrosoftDocs/azure-docs/commits/8169d11444bcfe3cbf5aa9027a4dbbfada66f60a/articles/app-service/tutorial-connect-msi-sqldatabase.md (the parent commit of the last commit on the page).

Actual: "Older" goes to https://github.com/MicrosoftDocs/azure-docs/commits/main/articles/app-service/tutorial-connect-msi-sqldatabase.md, a 404 (the rename was the addition of a - in sql-database).

Include in this issue:

  • Screenshots/video/gif demonstrating the bug, if it’s visual
  • Console errors, if any

Activity

  1. changed the title [-]`follow-file-renames` directs to 404 due to impropert [/-] [+]`follow-file-renames` directs to 404 due to improper ref in URL[/+] on Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions