Skip to content

Commit 1febe24

Browse files
committed
revert change in md file and disable locale flag for internal pdf links to ignore the locale prefix
1 parent 16277b1 commit 1febe24

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

public/content/whitepaper/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ _This introductory paper was originally published in 2014 by Vitalik Buterin, th
1212

1313
_While several years old, we maintain this paper because it continues to serve as a useful reference and an accurate representation of Ethereum and its vision. To learn about the latest developments of Ethereum, and how changes to the protocol are made, we recommend [this guide](/learn/)._
1414

15-
[Researchers and academics seeking a historical or canonical version of the whitepaper [from December 2014] should use this PDF.](/whitepaper-pdf/Ethereum_Whitepaper_-_Buterin_2014.pdf)
15+
[Researchers and academics seeking a historical or canonical version of the whitepaper [from December 2014] should use this PDF.](./whitepaper-pdf/Ethereum_Whitepaper_-_Buterin_2014.pdf)
1616

1717
## A Next-Generation Smart Contract and Decentralized Application Platform {#a-next-generation-smart-contract-and-decentralized-application-platform}
1818

src/components/Link.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,12 @@ export const BaseLink = forwardRef(function Link(
120120

121121
if (isInternalPdf) {
122122
return (
123-
<NextLink
123+
<ChakraLink
124124
isExternal
125+
// disable locale prefixing for internal PDFs
126+
// TODO: add i18n support using a rehype plugin (similar as we do for
127+
// images)
128+
locale={false}
125129
onClick={() =>
126130
trackCustomEvent(
127131
customEventOptions ?? {
@@ -133,9 +137,10 @@ export const BaseLink = forwardRef(function Link(
133137
)
134138
}
135139
{...commonProps}
140+
as={NextLink}
136141
>
137142
{children}
138-
</NextLink>
143+
</ChakraLink>
139144
)
140145
}
141146

0 commit comments

Comments
 (0)