Skip to content

Fix follow-file-renames feature - #5579

Merged
cheap-glitch merged 2 commits into
mainfrom
fix-follow-renames
Apr 11, 2022
Merged

cheap-glitch merged 2 commits into
mainfrom
fix-follow-renames

Conversation

@cheap-glitch

Copy link
Copy Markdown
Contributor

Fixes #5576

Test URLs

Screenshot

capture-1649348443.mp4

Comment thread source/features/follow-file-renames.tsx Resolved
search: '',
});
if (isOlder) {
linkifiedURL.branch = fileChanges.commit.parentSha; // #5576

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How come this became necessary? The feature worked before

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was wondering about that too, but I very rarely use this feature so I don't know. Maybe GitHub used to redirect to the last commit where the file existed, but stopped doing it for whatever reason?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm that's it, if I remember correctly you could use the commits page on any file and it would just show the commits whether the file existed or not, which would explain why this worked.

@fregante

Copy link
Copy Markdown
Member

Unless you have any more quick fixes coming today, please release a new version after merging this PR

@cheap-glitch
cheap-glitch merged commit bd48d98 into main Apr 11, 2022
@cheap-glitch
cheap-glitch deleted the fix-follow-renames branch April 11, 2022 06:36
@cheap-glitch

This comment was marked as outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

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

2 participants