Skip to content

Commit

Permalink
fix(docs): fix hash routes (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
deini authored Jul 14, 2020
1 parent 87b043c commit bb0eab3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/docs/components/NextLink/NextLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import { default as NLink } from 'next/link';
import React from 'react';

function getLinkAs(as = '') {
if (!as) {
return undefined;
}

const prefix = process.env.URL_PREFIX || '';

return prefix + as;
Expand Down

0 comments on commit bb0eab3

Please sign in to comment.