8000
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 03dd7a9 commit 9e1952dCopy full SHA for 9e1952d
pages/language/[language].tsx
@@ -11,6 +11,7 @@ import { OpenInNew } from "@material-ui/icons";
11
import { GetStaticPaths, GetStaticProps } from "next";
12
import useTranslation from "hooks/translation";
13
import { shouldUseISR } from "lib/aws";
14
+import { Algorithm } from "lib/models";
15
import classes from "./style.module.css";
16
17
export default function LanguagePage({
@@ -60,7 +61,7 @@ export default function LanguagePage({
60
61
<AlgorithmsList
62
algorithms={language.algorithms.map((algorithm) => ({
63
...algorithm,
- slug: algorithm.slug + "?lang=" + languageKey,
64
+ slug: `${algorithm.slug}?lang=${languageKey}`,
65
}))}
66
/>
67
</Section>
0 commit comments