RE: Getting parent url inside my a href tag

Dejan Obradovic, modified 4 Years ago. New Member Posts: 17 Join Date: 1/12/21 Recent Posts

In my widget template inside my script any of links - ahref tags having parent url before my url that I put in link tag?

 

For example: <a href="test.com/help"> - getting: www.parent-url/test.com/help". I want just to redirect to the page test.com

I don't know why thi happend at all?

Any help would be nice, thanks. 

thumbnail
Dejan Obradovic, modified 4 Years ago. Liferay Master Posts: 593 Join Date: 8/8/14 Recent Posts

Hi ,

If test.com is seperate domian/website then you may need to prepend http://( https:// - if ssl enabled) 

Ex. <a href="http://test.com/help"> 

Dejan Obradovic, modified 4 Years ago. New Member Posts: 17 Join Date: 1/12/21 Recent Posts

Hi Mohammed, 

 

That was fix! 

I don't understand how it worked without http:// ? After the last publsh from stagging to live, it happend? 

 

Thanks for respone