Skip to content

Commit efb602b

Browse files
fix: update docs for langchain toggle (#1836)
1 parent 2d88036 commit efb602b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/language-toggle.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
*
99
* How it works:
1010
* 1. Click listener detects language toggle clicks and stores current URL+hash
11-
* 2. MutationObserver detects when Mintlify's client-side routing changes the path
11+
* 2. History API interception (pushState/replaceState) and popstate/hashchange
12+
* listeners detect when Mintlify's client-side routing changes the path
1213
* 3. On path change, check if we're switching languages and redirect to equivalent page
1314
*/
1415

0 commit comments

Comments
 (0)