Skip to content

Commit 80e5b2b

Browse files
committed
try to fix bug
1 parent 3c73890 commit 80e5b2b

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

docs/advanced/routing.mdx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,7 @@ export function PageRoute() {
191191
}
192192
```
193193

194-
```mdx-code-block
195-
<BrowserWindow>
196-
<span>
197-
You are currently on <code>{location.pathname}</code>
198-
</span>
199-
</BrowserWindow>
200-
```
194+
201195

202196
---
203197

@@ -209,6 +203,11 @@ Because Docusaurus is an SPA, it handles navigation through React Router. Howeve
209203
- [pathname:///static-page](pathname:///static-page)
210204
```
211205

206+
<BrowserWindow>
207+
208+
- [`pathname:///static-page`](pathname:///static-page)
209+
210+
</BrowserWindow>
212211

213212
This ensures Docusaurus doesn’t attempt to render missing routes or show a 404 page.
214213

@@ -231,4 +230,4 @@ You can also use `pathname://` for static assets:
231230
- During build, routes become **static HTML files** for deployment.
232231
- Use `pathname://` for non-SPA links or static assets.
233232

234-
With this routing power, our **CodeHarborHub** site can scale efficiently — from a simple landing page to a complex multi-version documentation ecosystem.
233+
With this routing power, our **CodeHarborHub** site can scale efficiently — from a simple landing page to a complex multi-version documentation ecosystem.

0 commit comments

Comments
 (0)