We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a Link DOM such as <Link href="/blog/0", as="/blog/ss" /> My server router is like this.
<Link href="/blog/0", as="/blog/ss" />
router.get('/blog/:articleId', async (ctx) => { await app.render(ctx.req, ctx.res, '/articles', { articleId: ctx.params.articleId }); ctx.respond = false; });
How could I get the Link's href value? The ctx.params.articleId which I get is ss.
ctx.params.articleId
ss
The text was updated successfully, but these errors were encountered:
As you could read in the issue template, questions should be posted on https://spectrum.chat/next-js.
Nonetheless here's an explanation: #2833 (comment)
In your case href should be /articles?articleId=0
href
/articles?articleId=0
Sorry, something went wrong.
No branches or pull requests
Question about Next.js
I have a Link DOM such as
<Link href="/blog/0", as="/blog/ss" />
My server router is like this.
How could I get the Link's href value? The
ctx.params.articleId
which I get isss
.The text was updated successfully, but these errors were encountered: