title: Get Current URL in Magento and show something
body: <p>I'm trying to get the current URL in Magento and show something if I'm currently on that page. So far, this is what I did and it worked.</p>
  
  <pre><code> &lt;?php
   $currentUrl = $this-&gt;helper('core/url')-&gt;getCurrentUrl();
   ?&gt;     
  
   &lt;?php if($currentUrl === 'http://powerplantv2.jehzlau.net/blog') { ?&gt;I am in the blog page&lt;?php } ?&gt;
  </code></pre>
  
  <p>However, I don't want to hard code the URL in the source code, because If I transfer to another server, I need to modify the phtml file again.</p>
  
  <p>I tried everything that I found online, but it didn't work. I hope some Magento expert here can enlighted me of what I'm doing wrong. :(</p>