@@ -97,7 +97,7 @@ const url = {
97
97
<a
98
98
class =" link"
99
99
href ={ ` ${base }migration-guide ` }
100
- aria-current ={ isCurrentPage (" / migration-guide" )}
100
+ aria-current ={ isCurrentPage (" migration-guide" )}
101
101
>
102
102
Migrating
103
103
</a >
@@ -120,7 +120,7 @@ const url = {
120
120
<a
121
121
class =" link"
122
122
href ={ ` ${base }openapi-fetch ` }
123
- aria-current ={ isCurrentPage (" / openapi-fetch" )}
123
+ aria-current ={ isCurrentPage (" openapi-fetch" )}
124
124
>
125
125
Introduction
126
126
</a >
@@ -129,7 +129,7 @@ const url = {
129
129
<a
130
130
class =" link"
131
131
href ={ ` ${base }openapi-fetch/api ` }
132
- aria-current ={ isCurrentPage (" / openapi-fetch/api" )}
132
+ aria-current ={ isCurrentPage (" openapi-fetch/api" )}
133
133
>
134
134
API
135
135
</a >
@@ -138,7 +138,7 @@ const url = {
138
138
<a
139
139
class =" link"
140
140
href ={ ` ${base }openapi-fetch/examples ` }
141
- aria-current ={ isCurrentPage (" / openapi-fetch/examples" )}
141
+ aria-current ={ isCurrentPage (" openapi-fetch/examples" )}
142
142
>
143
143
Examples
144
144
</a >
@@ -147,7 +147,7 @@ const url = {
147
147
<a
148
148
class =" link"
149
149
href ={ ` ${base }openapi-fetch/about ` }
150
- aria-current ={ isCurrentPage (" / openapi-fetch/about" )}
150
+ aria-current ={ isCurrentPage (" openapi-fetch/about" )}
151
151
>
152
152
About
153
153
</a >
@@ -165,7 +165,10 @@ const url = {
165
165
});
166
166
167
167
document.getElementById("v6").addEventListener("change", (evt) => {
168
- if (window.location.pathname === "/migration-guide") {
168
+ if (
169
+ window.location.pathname === "/migration-guide" ||
170
+ window.location.pathname.includes("/openapi-fetch")
171
+ ) {
169
172
return; // no /v6 version
170
173
}
171
174
if (evt.target.checked) {
0 commit comments