title: Adding a slash after hostname and before query params
body: <p>I need to add a slash in case there is no path in url before &quot;?&quot; query params.</p>
  <p>For instance
  <strong><a href="https://www.example.com?foo=bar" rel="nofollow noreferrer">https://www.example.com?foo=bar</a></strong> turns out to be <strong><a href="https://www.example.com/?foo=bar" rel="nofollow noreferrer">https://www.example.com/?foo=bar</a></strong></p>
  <p>This change i only need to do once in a url:</p>
  <p><strong><a href="https://www.example.com?foo=bar&amp;url=https://www.example.com?aa=b" rel="nofollow noreferrer">https://www.example.com?foo=bar&amp;url=https://www.example.com?aa=b</a></strong>
  will be <strong><a href="https://www.example.com/?foo=bar&amp;url=https://www.example.com?aa=b" rel="nofollow noreferrer">https://www.example.com/?foo=bar&amp;url=https://www.example.com?aa=b</a></strong></p>
  <p>Also, In case there is path,  no don't need to add this slash
  <strong><a href="https://www.example.com/path?foo=bar" rel="nofollow noreferrer">https://www.example.com/path?foo=bar</a></strong> will remain <strong><a href="https://www.example.com/path?foo=bar" rel="nofollow noreferrer">https://www.example.com/path?foo=bar</a></strong></p>
  <p>Would really appreciate the help.</p>