Foren

don't show back link

thumbnail
sepideh tajeri, geändert vor 11 Jahren.

don't show back link

Junior Member Beiträge: 32 Beitrittsdatum: 30.10.11 Neueste Beiträge
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.emoticon
please guide me for find reason.
thank you.
thumbnail
Rahul Rabhadiya, geändert vor 10 Jahren.

RE: don't show back link

Junior Member Beiträge: 57 Beitrittsdatum: 14.06.13 Neueste Beiträge
Hi tajeri,

I have same issue like you.. did you find any solution for this issue?
thumbnail
Rahul Rabhadiya, geändert vor 10 Jahren.

RE: don't show back link

Junior Member Beiträge: 57 Beitrittsdatum: 14.06.13 Neueste Beiträge
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..
thumbnail
Akshy Kumar, geändert vor 10 Jahren.

RE: don't show back link

New Member Beiträge: 13 Beitrittsdatum: 21.02.12 Neueste Beiträge
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,
thumbnail
Rahul Rabhadiya, geändert vor 10 Jahren.

RE: don't show back link

Junior Member Beiträge: 57 Beitrittsdatum: 14.06.13 Neueste Beiträge
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
thumbnail
Akshy Kumar, geändert vor 10 Jahren.

RE: don't show back link

New Member Beiträge: 13 Beitrittsdatum: 21.02.12 Neueste Beiträge
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,
thumbnail
Rahul Rabhadiya, geändert vor 10 Jahren.

RE: don't show back link

Junior Member Beiträge: 57 Beitrittsdatum: 14.06.13 Neueste Beiträge
Thank you .. for guiding me

Regards,
Rahul