const commit = [["https://github.com/leanprover-community/mathlib/blob/master/src/", "https://github.com/leanprover-community/mathlib/blob/bf2428c9486c407ca38b5b3fb10b87dad0bc99fa/src/"], ["https://github.com/leanprover-community/mathlib/blob/master/archive/", "https://github.com/leanprover-community/mathlib/blob/bf2428c9486c407ca38b5b3fb10b87dad0bc99fa/archive/"], ["https://github.com/leanprover-community/mathlib/blob/master/counterexamples/", "https://github.com/leanprover-community/mathlib/blob/bf2428c9486c407ca38b5b3fb10b87dad0bc99fa/counterexamples/"]]; function redirectTo(tgt) { let loc = tgt; for (const [prefix, replacement] of commit) { if (tgt.startsWith(prefix)) { loc = tgt.replace(prefix, replacement); break; } } window.location.replace(loc); }