Skip to content

Commit b905138

Browse files
committed
Fix navigation to llms.txt (static resources)
1 parent 5d23f59 commit b905138

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/Markdown.res

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,11 @@ module Hr = {
373373
module A = {
374374
@react.component
375375
let make = (~href, ~target=?, ~children) => {
376-
// In case we are handling a relative URL, we will use the Next routing
377-
if Util.Url.isAbsolute(href) {
376+
// FIXME: can this be improved/generalized?
377+
let shouldReloadDocument = href->String.startsWith("/llms")
378+
379+
// In case we are handling a relative URL, we will use React Router's link component.
380+
if Util.Url.isAbsolute(href) || shouldReloadDocument {
378381
<a
379382
href
380383
rel="noopener noreferrer"

0 commit comments

Comments
 (0)