ReWrite rule giving a hard time.

Hi all,

I am trying to find a rewrite rule that can help me with the following situation.

So I am currently on a page which has a URL:

http://www.test.mobile.com/#!/shop/phones/max-plus/features/

Now when I hover over a certain link, I can see that it will goto:

<a href="/shop/phones/android-phones/">Show details</a>

When I click on the link, it goes to:

http://www.test.mobile.com:8080/#!/shop/phones/android-phones

The above link is wrong and I see an "Unable to connect message".

If I remove the 8080, I end up at :

http://www.test.mobile.com/#!/shop/phones/android-phones

and this works.

How can I make a rule that ignores the 8080 being added to the URL ?