Skip to content

Commit

Permalink
Restore split-issue-pr-search-results (#3556)
Browse files Browse the repository at this point in the history
  • Loading branch information
yakov116 committed Sep 17, 2020
1 parent d3ba5e0 commit f13db9b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/features/split-issue-pr-search-results.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ function init(): void {
cleanLinks();
pageSearchQuery = new SearchQuery(location);

const issueLink = select<HTMLAnchorElement>('nav.menu a[href*="&type=Issues"]')!;
const issueLink = select<HTMLAnchorElement>([
'nav.menu a[href*="&type=Issues"]', // Only for GHE
'.menu-item[href*="&type=issues"]'
])!;
issueLink.textContent = 'Issues'; // Drops any possible counter
issueLink.href = createUrl('issue');
issueLink.append(
Expand Down

0 comments on commit f13db9b

Please sign in to comment.