fix: navigate link now always returns to all articles beacuse history can be empty

This commit is contained in:
Rick van Lieshout 2022-11-09 22:28:43 +01:00
parent b9632410d2
commit 80c31d70f4

View File

@ -24,7 +24,7 @@ export const PostHeader: FunctionComponent<Props> = ({ author }) => {
</span>
<span className="hideInPrintView">
<a onClick={() => navigate(-1)} style={{ lineHeight: "50px", marginRight: "10px" }}>
<a onClick={() => navigate("/")} style={{ lineHeight: "50px", marginRight: "10px" }}>
Back to articles
</a>
<ThemeSwitcher showLabel={false} />