Skip to content

Commit

Permalink
Ignore links to other branches
Browse files Browse the repository at this point in the history
  • Loading branch information
jablko committed Feb 4, 2022
1 parent f259b30 commit c9c1ea1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/find/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ export function config(ctx) {
if (info && info.type !== 'gist') {
if (info.type in viewPaths) {
urlConfig.prefix = '/' + info.path() + '/' + viewPaths[info.type] + '/'
if (info.committish) {
urlConfig.prefix += info.committish + '/'
}
}

if (info.type in headingPrefixes) {
Expand Down

0 comments on commit c9c1ea1

Please sign in to comment.