You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add button to see the latest version of file/folder #1029
detect ?rgh-head-redirect=file.js as early as possible, find current branch, redirect to it
The current branch is found in the <head> so we might get away with this before the first paint:
<!-- Example code found in a repo root, where `source` is the default branch --><linkhref="https://github.com/download-directory/download-directory.github.io/commits/source.atom" rel="alternate" title="Recent Commits to download-directory.github.io:source" type="application/atom+xml">
It requires an extra HTTP request, but it's on demand, we don't have to make it unless it's explicitly requested.
Activity
fregante commentedon Jan 24, 2018
Possible solution:
user/repo?rgh-head-redirect=file.js?rgh-head-redirect=file.jsas early as possible, find current branch, redirect to itThe current branch is found in the
<head>so we might get away with this before the first paint:It requires an extra HTTP request, but it's on demand, we don't have to make it unless it's explicitly requested.
sindresorhus commentedon Jan 25, 2018
👍
fregante commentedon Jan 29, 2018
Related feature that would/could/should be merged:
#395 (comment)
Edit: this related feature is in #1049 🎉