Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent patch-diff-links from being AJAXed #5339

Merged
merged 2 commits into from
Jan 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions source/features/patch-diff-links.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ function init(): void {
}

select('.commit-meta > :last-child')!.append(
<span className="sha-block patch-diff-links">
Copy link
Member Author

Choose a reason for hiding this comment

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

Forgotten in #4735

<a href={`${commitUrl}.patch`} className="sha">patch</a>
<span className="sha-block">
<a data-skip-pjax href={`${commitUrl}.patch`} className="sha">patch</a>
{ ' ' /* Workaround for: JSX eats whitespace between elements */ }
<a href={`${commitUrl}.diff`} className="sha">diff</a>
<a data-skip-pjax href={`${commitUrl}.diff`} className="sha">diff</a>
</span>,
);
}
Expand Down