How to get the full URL of the route?
<p>I have a Sinatra <a href="https://github.com/dpisarenko/50web/blob/songcontest1/views/songcontest/home.erb" rel="nofollow">template file</a>, which sends a POST request to the <a href="https://github.com/dpisarenko/50web/blob/songcontest1/routes/songcontest.rb" rel="nofollow">route</a> <code>/en/signup</code> (<code>en</code> is the locale).</p>

<p>I need to extract the <code>en</code> from <code>/en/signup</code>. I tried to use <code>request.path</code> in the following code, but contains only <code>/signup</code>, not <code>/en/signup</code>. The log file shows that <code>/en/signup</code> was called.</p>

<p>What construct can I use in the route <code>post '/signup'</code> in order to get <code>/en/signup</code>?</p>