title: How to escape slash in URL parameter
body: <pre><code>$.ajax({
          url: "/api/v1/cases/annotations/" + case_id + "/" + encodeURIComponent(current_plink),
  </code></pre>
  
  <p>I am using <strong>encodeURIComponent</strong> to escape slash. But it does not work for me. This code convert "slash" to "%2F" but apache does not recognize it.</p>
  
  <p>My php part like this : </p>
  
  <pre><code>$app-&gt;get('/cases/annotations/:case_id/:prep_name', 'authenticatePathologist', function($case_id, $prep_name) use ($app) {
  </code></pre>
  
  <p>If i try to send parameter which include slash, it returns page not found.
  <a href="https://i.stack.imgur.com/J3zwl.png" rel="noreferrer"><img src="https://i.stack.imgur.com/J3zwl.png" alt="enter image description here"></a></p>
  
  <p>But if i try to send parameter which does not include slash, it returns OK.
  <a href="https://i.stack.imgur.com/6mTEr.png" rel="noreferrer"><img src="https://i.stack.imgur.com/6mTEr.png" alt="enter image description here"></a></p>