Skip to content

Commit

Permalink
refactor(related articles): use url instead of slug
Browse files Browse the repository at this point in the history
  • Loading branch information
mlbrgl committed Feb 7, 2024
1 parent ad70734 commit dd38a3c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions site/RelatedArticles/RelatedArticles.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from "react"
import { PostReference } from "@ourworldindata/utils"
import { BAKED_BASE_URL } from "../../settings/serverSettings.js"

export const RelatedArticles = ({
articles,
Expand All @@ -11,9 +10,7 @@ export const RelatedArticles = ({
<ul className="research">
{articles.map((article) => (
<li key={article.slug}>
<a href={`${BAKED_BASE_URL}/${article.slug}`}>
{article.title}
</a>
<a href={article.url}>{article.title}</a>
</li>
))}
</ul>
Expand Down

0 comments on commit dd38a3c

Please sign in to comment.