Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Alireza Zare
How to skip domain names in the full urls?
November 28, 2012 10:16 PM
Answer

Alireza Zare

Rank: Regular Member

Posts: 110

Join Date: September 3, 2010

Recent Posts

Hello,

We have a requirement to just allow relative urls and not full url's.
Does anyone have any suggestion to do this. Is there any class in liferay API to filter the full path?

Thanks in advance,
Alireza
Ali Reza Akbarian
RE: How to skip domain names in the full urls?
November 30, 2012 6:42 AM
Answer

Ali Reza Akbarian

Rank: New Member

Posts: 6

Join Date: April 7, 2012

Recent Posts

Hi AliReza
this code can help you:
PortalUtil.getCurrentURL(request)

thanks.