Skip to content

Commit fa09e4a

Browse files
committed
docs: add redirects for broken hashes on auth.rst
1 parent fd127f4 commit fa09e4a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/references/auth.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,3 +296,23 @@ doing custom logic based on the web user info.
296296
END IF;
297297
END
298298
$$ LANGUAGE plpgsql;
299+
300+
.. raw:: html
301+
302+
<script type="text/javascript">
303+
let hash = window.location.hash;
304+
305+
const redirects = {
306+
'#jwt-based-user-impersonation': '#jwt-authentication',
307+
'#client-auth': '#bearer-authentication',
308+
'#jwt-caching': '#jwt-cache',
309+
'#jwk-kid-validation': '#kid-verification',
310+
'#jwt-aud-claim-validation': '#aud-validation',
311+
};
312+
313+
let willRedirectTo = redirects[hash];
314+
315+
if (willRedirectTo) {
316+
window.location.href = willRedirectTo;
317+
}
318+
</script>

0 commit comments

Comments
 (0)