title: Wordpress permalink without domain name
body: <p>OK it might sound stange but I am facing a good challenge with wordpress. 
  when echoing <code>the_permalink();</code> and checking the portfolio pages, I am getting a link something like this: </p>
  
  <pre><code>http://www.domain.com/?portfolio=test 
  </code></pre>
  
  <p>(Where test is the portfolio name). </p>
  
  <p>Is there any option to return the permalink trimmed to <code>?portfolio=test</code> keeping out the domain url?
  While asking, I think I got the answer already (<code>trim()</code>) but I would like to hear your ideas too. </p>
  
  <p>every answer will be much appreciated! </p>