Skip to content

Weird behaviour with ampersand(&) keyword in urls #2351

Answered by ChristianMurphy
xoldd asked this question in Q&A
Discussion options

You must be logged in to vote

@xoldyckk Focus on creating a minimal reproducible example https://stackoverflow.com/help/minimal-reproducible-example
When I took the sandbox you shared, and pulled out tailwind and the experimental next options, then added the recommended options from https://mdxjs.com/docs/getting-started/#nextjs

It does renders with & instead of & https://codesandbox.io/p/sandbox/nextjs-mdx-forked-k7l629?file=/next.config.mjs:10,1

You are welcome to tinker around and try to figured out which extra layer you added was the precise root cause of &.
But MDX and @next/mdx work fine when using the default/recommended configuration.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@xoldd
Comment options

@wooorm
Comment options

@xoldd
Comment options

@ChristianMurphy
Comment options

Answer selected by ChristianMurphy
@xoldd
Comment options

@wooorm
Comment options

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