Skip to content

How to create Localized Pathnames with URL parameters #980

Answered by amannn
Rheaparks asked this question in Q&A
Discussion options

You must be logged in to vote

Is the # intended, or are you looking for search params (?)?

Generally you'd need a structure like app/[locale]/pathname and link to it like so:

<Link
  href={{
    pathname: '/pathname',
    hash: 'parameter1=[parameter1]&parameter2=[parameter2]&parameter3=[parameter3]'
  }}
  locale="en"
>
  Test
</Link>

Hope this helps!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Rheaparks
Comment options

@amannn
Comment options

Answer selected by Rheaparks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants