Skip to content

Commit

Permalink
Adding the previous article link
Browse files Browse the repository at this point in the history
  • Loading branch information
lucis committed Jun 24, 2020
1 parent 4df804c commit 760f51b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion react/GettingStartedArticle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ const GettingStartedArticle: FC<OuterProps & InjectedRuntime> = ({
{hasPrevArticle(currentArticle) && (
<Link
className="link c-emphasis no-underline t-body mr-auto flex items-center dim"
to={`${currentArticle - 1}`}>
page="docs-ui.getting-started"
params={{
track,
article: `${currentArticle - 1}`,
}}>
<div className="flex flex-column flex-row-l">
<div className="dn db-l mr5">
<LeftArrow />
Expand Down

0 comments on commit 760f51b

Please sign in to comment.