Fórumok
don't show back link
sepideh tajeri, módosítva 11 év-val korábban
don't show back link
Junior Member Bejegyzések: 32 Csatlakozás dátuma: 2011.10.30. Legújabb bejegyzések
Hi My friends
i work with liferay 6.1 .
when I put this liferay on server don't show back url in subcategory and threads in message boards portlet.
I check header ui taglib, and I find backURL parametter is null in follow code:
if (Validator.isNotNull(backLabel)) {
if (!backLabel.startsWith("« ")) {
backLabel = "« ".concat(LanguageUtil.format(pageContext, "back-to-x", HtmlUtil.escape(backLabel)));
}
}
else {
backLabel = "« ".concat(LanguageUtil.get(pageContext, "back"));
}
if (Validator.isNotNull(backURL) && !backURL.equals("javascript:history.go(-1);")) {
backURL = HtmlUtil.escape(HtmlUtil.escapeHREF(PortalUtil.escapeRedirect(backURL)));
}
String headerTitle = (localizeTitle) ? LanguageUtil.get(pageContext, title) : title;
this code work in local server sorrectly, but when I put them on server with valid IP, it don't work.
please guide me for find reason.
thank you.
i work with liferay 6.1 .
when I put this liferay on server don't show back url in subcategory and threads in message boards portlet.
I check header ui taglib, and I find backURL parametter is null in follow code:
if (Validator.isNotNull(backLabel)) {
if (!backLabel.startsWith("« ")) {
backLabel = "« ".concat(LanguageUtil.format(pageContext, "back-to-x", HtmlUtil.escape(backLabel)));
}
}
else {
backLabel = "« ".concat(LanguageUtil.get(pageContext, "back"));
}
if (Validator.isNotNull(backURL) && !backURL.equals("javascript:history.go(-1);")) {
backURL = HtmlUtil.escape(HtmlUtil.escapeHREF(PortalUtil.escapeRedirect(backURL)));
}
String headerTitle = (localizeTitle) ? LanguageUtil.get(pageContext, title) : title;
this code work in local server sorrectly, but when I put them on server with valid IP, it don't work.
please guide me for find reason.
thank you.
Rahul Rabhadiya, módosítva 10 év-val korábban
RE: don't show back link
Junior Member Bejegyzések: 57 Csatlakozás dátuma: 2013.06.14. Legújabb bejegyzések
Hi tajeri,
I have same issue like you.. did you find any solution for this issue?
I have same issue like you.. did you find any solution for this issue?
Rahul Rabhadiya, módosítva 10 év-val korábban
RE: don't show back link
Junior Member Bejegyzések: 57 Csatlakozás dátuma: 2013.06.14. Legújabb bejegyzések
Issue has been solved .. actually in portal settings Virtual host will be " localhost" so it will be creating issue of not showing "Back" button and many more redirection issues. So rather "localhost " it should be ur IP address..
Akshy Kumar, módosítva 10 év-val korábban
RE: don't show back link
New Member Bejegyzések: 13 Csatlakozás dátuma: 2012.02.21. Legújabb bejegyzések
Hi Rahul,
The following entry in portal-ext.properties also help you from back button and redirection issues.
redirect.url.ips.allowed=127.0.0.1, your machine Ip address, SERVER_IP
Thanks,
The following entry in portal-ext.properties also help you from back button and redirection issues.
redirect.url.ips.allowed=127.0.0.1, your machine Ip address, SERVER_IP
Thanks,
Rahul Rabhadiya, módosítva 10 év-val korábban
RE: don't show back link
Junior Member Bejegyzések: 57 Csatlakozás dátuma: 2013.06.14. Legújabb bejegyzések
Hi akshy ,
Thank you for suggesting me new another solution,
I just want to know one more thing from where can I get idea of configurations such as "redirect.url.ips.allowed=...." ?? Is there any documentations or anything else?
Regards,
Rahul
Thank you for suggesting me new another solution,
I just want to know one more thing from where can I get idea of configurations such as "redirect.url.ips.allowed=...." ?? Is there any documentations or anything else?
Regards,
Rahul
Akshy Kumar, módosítva 10 év-val korábban
RE: don't show back link
New Member Bejegyzések: 13 Csatlakozás dátuma: 2012.02.21. Legújabb bejegyzések
Hi Rahul,
You can get details in portal.properties file.
#
# Input a list of comma delimited domains which the portal is allowed to
# redirect to. Input a blank list to allow any domain.
#
redirect.url.domains.allowed=
#
# Input a list of comma delimited IPs which the portal is allowed to
# redirect to. Input a blank list to allow any IP. SERVER_IP will be
# replaced with the IP of the host server.
#
redirect.url.ips.allowed=127.0.0.1,SERVER_IP
The following links will also help you.
http://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/redirect
http://www.liferay.com/community/forums/-/message_boards/message/10920979
Thanks,
You can get details in portal.properties file.
#
# Input a list of comma delimited domains which the portal is allowed to
# redirect to. Input a blank list to allow any domain.
#
redirect.url.domains.allowed=
#
# Input a list of comma delimited IPs which the portal is allowed to
# redirect to. Input a blank list to allow any IP. SERVER_IP will be
# replaced with the IP of the host server.
#
redirect.url.ips.allowed=127.0.0.1,SERVER_IP
The following links will also help you.
http://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/redirect
http://www.liferay.com/community/forums/-/message_boards/message/10920979
Thanks,
Rahul Rabhadiya, módosítva 10 év-val korábban
RE: don't show back link
Junior Member Bejegyzések: 57 Csatlakozás dátuma: 2013.06.14. Legújabb bejegyzések
Thank you .. for guiding me
Regards,
Rahul
Regards,
Rahul