Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Getting parent url inside my a href tag
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.
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">
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
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™