Skip to content

Commit

Permalink
Use base URL for doc links. (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
funivan authored Feb 27, 2024
1 parent 9e290d0 commit c7065d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/landing/src/sections/DocsPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ interface DocLinks {
};
}

const baseUrl = import.meta.env.BASE_URL;
const docLinks: DocLinks = {
'en-US': {
href: '/assets/docs/landing/Public offer to make a voluntary charitable donation.pdf',
href: `${baseUrl}/assets/docs/landing/Public offer to make a voluntary charitable donation.pdf`,
content: 'Public offer to make a voluntary charitable donation',
},
'uk-UA': {
href: '/assets/docs/landing/Публічна оферта про надання добровільної благодійної пожертви.pdf',
href: `${baseUrl}/assets/docs/landing/Публічна оферта про надання добровільної благодійної пожертви.pdf`,
content: 'Публічна оферта про надання добровільної благодійної пожертви',
},
};
Expand Down

0 comments on commit c7065d2

Please sign in to comment.