title: Nextjs - How to pass params to server router with Link
body: <p>I have a Link DOM such as <code>&lt;Link href="/blog/0", as="/blog/ss" /&gt;</code>
  My server router is like this.</p>
  
  <pre><code>router.get('/blog/:articleId', async (ctx) =&gt; {
    await app.render(ctx.req, ctx.res, '/articles', { articleId: ctx.params.articleId });
    ctx.respond = false;
  });
  </code></pre>
  
  <p>How could I get the Link's href value? The <code>ctx.params.articleId</code> which I get is <code>ss</code>.</p>
  
  <p><strong>Update:</strong>
  the request object</p>
  
  <pre><code>{ request:
     { method: 'GET',
       url: '/articles/test-context-1',
       header:
        { host: '127.0.0.1:3000',
          connection: 'keep-alive',
          'upgrade-insecure-requests': '1',
          dnt: '1',
          'save-data': 'on',
          'user-agent':
           'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6)     AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36',
      accept:
       'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
      referer: 'http://127.0.0.1:3000/',
      'accept-encoding': 'gzip, deflate, br',
      'accept-language': 'zh-TW,zh;q=0.9,en-US;q=0.8,en;q=0.7' } },
    response: { status: 200, message: 'OK', header: {} },
    app: { subdomainOffset: 2, proxy: false, env: 'development' },
    originalUrl: '/articles/test-context-1',
    req: '&lt;original node req&gt;',
    res: '&lt;original node res&gt;',
    socket: '&lt;original node socket&gt;' }
  </code></pre>