We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 613e287 commit f0a43a6Copy full SHA for f0a43a6
apify-docs-theme/static/js/custom.js
@@ -75,6 +75,25 @@ function scrollOpenApiSidebarItemIntoView() {
75
});
76
}
77
78
+function redirectOpenApiDocs() {
79
+ const { hash, pathname } = new URL(window.location.href);
80
+
81
+ // TODO change to '/api/v2'
82
+ if (pathname.replace(/\/$/, '') !== '/api/v2-new') {
83
+ return;
84
+ }
85
86
+ if (hash.startsWith('#/reference/')) {
87
+ const id = hash.substring('/#reference/'.length);
88
+ console.log('redirect', { id, hash });
89
90
91
+ if (hash.startsWith('#tag/')) {
92
+ const id = hash.substring('#tag/'.length);
93
94
95
+}
96
97
let ticking = false;
98
99
document.addEventListener('scroll', () => {
0 commit comments