Skip to content

Commit 5209554

Browse files
committed
scroll sidebar into view after redirects
1 parent 0c5c1b3 commit 5209554

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apify-docs-theme/static/js/custom.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ function redirectOpenApiDocs() {
9090
const ids = item.getAttribute('data-altids').split(',');
9191
if (ids.find((variant) => variant === hash)) {
9292
item.click();
93+
setTimeout(() => scrollOpenApiSidebarItemIntoView(), 200);
9394
}
9495
}
9596
}

0 commit comments

Comments
 (0)