From 760f51ba0764bbbe109f9a83817a64ccb1b09144 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luciano=20J=C3=BAnior?= Date: Wed, 24 Jun 2020 15:51:26 -0300 Subject: [PATCH] Adding the previous article link --- CHANGELOG.md | 2 +- react/GettingStartedArticle.tsx | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4dc4ee0..1e6ca26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] ### Fixed -- Link `Next Article` to work with trailing slash. +- Link `Next Article` and `Previous Article` to work with trailing slash. ## [2.1.1] - 2020-06-12 ### Fixed diff --git a/react/GettingStartedArticle.tsx b/react/GettingStartedArticle.tsx index 2cd0dd2..16c3ede 100644 --- a/react/GettingStartedArticle.tsx +++ b/react/GettingStartedArticle.tsx @@ -62,7 +62,11 @@ const GettingStartedArticle: FC = ({ {hasPrevArticle(currentArticle) && ( + page="docs-ui.getting-started" + params={{ + track, + article: `${currentArticle - 1}`, + }}>