Skip to content

Extend forked-to and fork-source-link-same-view to entire repo - #5351

Merged
kidonng merged 5 commits into
mainfrom
extend-fork-features
Feb 1, 2022
Merged

kidonng merged 5 commits into
mainfrom
extend-fork-features

Conversation

@kidonng

@kidonng kidonng commented Jan 29, 2022 •

Copy link
Copy Markdown
Member

Most pages of forks and parents are interchangeable, except for issues and PRs.

Enforcing too many limits is unnecessary and useful-not-found-page would help if something does go wrong.

Test URLs

Screenshot

});
}

if (!isFilePath() || await doesFileExist(sameViewUrl)) {

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.

Doesn't this trigger an extra request for every fork page we visit? I'm surprised we went with this solution.

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.

We did since it's a tiny request and we did not want 404s

@cheap-glitch cheap-glitch changed the title Extend forked-to and fork-source-link-same-view to entrie repo Extend forked-to and fork-source-link-same-view to entire repo Jan 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants