We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d23f59 commit b905138Copy full SHA for b905138
src/components/Markdown.res
@@ -373,8 +373,11 @@ module Hr = {
373
module A = {
374
@react.component
375
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) {
+ // FIXME: can this be improved/generalized?
+ 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 {
381
<a
382
href
383
rel="noopener noreferrer"
0 commit comments