Skip to content

Commit 6535d75

Browse files
committed
BM and GH fixes
1 parent 7e89d77 commit 6535d75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

britishmuseum.org/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Repair legacy ASPX link by redirecting
44
* to search
55
*/
6-
if (location.pathname === "/research/search_the_collection_database/search_object_details.aspx") {
6+
if (/\/research\/search_the_collection_database\/search_object_(?:details|image).aspx/.test(location.pathname)) {
77
const params = new URLSearchParams(location.search.substring(1));
88
const oid = params.get('objectId') || params.get('objectid');
99
if (oid) {

github.com/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ onBrowse(() => {
1313
const fileMatch = location.pathname.match(fileRegex);
1414

1515
if (fileMatch) {
16-
const btns = document.querySelector(".BtnGroup");
16+
const btns = document.querySelector(".repository-content .BtnGroup");
1717
if (btns) {
1818
const [, user, repo, branch, file] = fileMatch;
1919

0 commit comments

Comments
 (0)