Skip to content

Commit

Permalink
fix(docs): add absoluteUrl to navbar sdk link (#1000)
Browse files Browse the repository at this point in the history
### 🐛 Bug

When you go to a page that isn't served from the apify-docs, but some
sub-doc (e.g. https://docs.apify.com/cli/ ) you cannot click on the
'SDK' item in the navbar.

### 🛠️ Fix

I included absoluteUrl in the link. Now it is the same as 'API', which
works in production.
  • Loading branch information
baldasseva authored May 13, 2024
1 parent 9c5bb02 commit 9549454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apify-docs-theme/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const themeConfig = ({
{
label: 'SDK',
type: 'dropdown',
to: '/sdk',
to: `${absoluteUrl}/sdk`,
activeBasePath: 'sdk',
position: 'left',
target: '_self',
Expand Down

0 comments on commit 9549454

Please sign in to comment.