<ul dir="auto">
<li>[x ] I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<p dir="auto">Hello,<br>
I have this problem, if I rendered page <em>XX</em> through the server (Express), which uses the alias (as) <em>YY</em>, click on <code class="notranslate">&lt;Link&gt;</code> doesn't work.</p>
<h3 dir="auto">Current Behavior</h3>
<p dir="auto">We display the XX page, there is a link to the same page, but with extra param - defined in this way <code class="notranslate">&lt;Link href="/XX?id=1" as="/YY/ 1"&gt;</code> then clicking on it do nothing, no errors in the console.<br>
I noticed that the link works if I change <code class="notranslate">href="/XX?id=1"</code> to <code class="notranslate">href="_random_string_"</code>.</p>
<p dir="auto">Also when I change the subpage to <em>ZZ</em> dynamically and return dynamically to <em>XX</em>, Link  works correctly (<strong>expected</strong>).</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Clicking on <code class="notranslate">&lt;Link&gt;</code> changes the parameter in the url without changing the page.</p>
<h3 dir="auto">Context</h3>
<p dir="auto">Let's say I have a list of recipes in strore and I display them on the page <em>/recipes</em>, when I click on the Link, I do not want to change the page, just add the parameter /recipies/1 and load the selected recipe details.</p>
<h2 dir="auto">Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>5.0</td>
</tr>
<tr>
<td>node</td>
<td>9.4.0</td>
</tr>
</tbody>
</table>
<p dir="auto">In the projects not using next.js, we use "pm2 start pm2.json. It never generates duplicate pm2 instances.</p>
<p dir="auto">When using PM2 with next.js, we can't use pm2.json configuration file. The code is like the following:</p>
<p dir="auto"><code class="notranslate">// package.json</code><br>
<code class="notranslate">"start": "node --experimental-modules server.mjs"</code></p>
<p dir="auto"><code class="notranslate">// deploy.sh</code><br>
<code class="notranslate">pm2 start npm --name "myproj" -- start</code></p>
<p dir="auto">When I run deploy.sh without deleting the existing "myproj" pm2 instance, there would be two "myproj" instances. And it disables the auto-deployment script.</p>
<p dir="auto">Looking forward to the answer.</p>