title: Using Rails globbing for URL parameters: some URL types get cut off
body: <p>I'm having an odd problem with Ruby on Rails globbing. My route looks like this:</p>
  <pre class="lang-rb prettyprint-override"><code>  get 'people/info_from_url/*url', to: 'people#info_from_url'
  </code></pre>
  <p>So from the frontend, I have get requests to URLs like:</p>
  <ul>
  <li><code>my-api.com/people/info_from_url/youtube.com/XXX</code></li>
  <li><code>my-api.com/people/info_from_url/twitter.com/XXX</code></li>
  <li><code>my-api.com/people/info_from_url/tinyurl.com/XXX</code></li>
  <li>...</li>
  </ul>
  <p>These all work as expected - I get a parameter in the <code>people#info_from_url</code> controller action called <code>url</code> that contains the full URL that was sent.</p>
  <p>However, for one particular kind of URL (<code>XXX.carrd.co</code>), the last part gets cut off. In the frontend, I send a get request to <code>my-api.com/people/info_from_url/XXX.carrd.co</code>. From the backend logs:</p>
  <pre><code>INFO -- : Started GET &quot;/people/info_from_url/XXX.carrd.co/&quot;
  INFO -- : Processing by PeopleController#info_from_url as
  INFO -- :   Parameters: {&quot;url&quot;=&gt;&quot;XXX.carrd&quot;}
  </code></pre>
  <p>Somewhere, the <code>.co</code> gets dropped. I'm not sure why this could be happening or how to debug it, since the change happens before I'm able to access the params hash. I could deal with this manually by just checking if it's a carrd link, but I'd like to know why it's happening and if any other kind of link might experience this issue. Thanks for any help!</p>