Le mie Attività

luglio 23
Hai Yu ha aggiornato LPS-48662.
Hai Yu ha lasciato un commento su LPS-48662.
23.24 The issue shoule be intended behavior. Please refer to my below explanation: For the customer used API, after change Root Context, return url doesn't mean custom context appended two times. Actually, it is composed of "themeDisplay.getPathContext() + themeDisplay.getPathMain() + '/portal/layout?p_l_id=' + themeDisplay.getPlid();". Please refer to the code fragment in html\js\liferay\portlet_url.js In this case, themeDisplay.getPathContext()="/rapid" and themeDisplay.getPathMain()="/rapid/c", so we can see the custom context two times. And this expresses different meaning. For themeDisplay.getPathContext() and themeDisplay.getPathMain()'s assigned value, please refer to ServicePreAction.initThemeDisplay(). Actually, the two value assigned occured in portal startup. Please the code fragment "_portalServletContextPath = servletContext.getContextPath();" in PortalContextLoaderListener.contextInitialized() method and PortalImpl's constructor. For the code "_portalServletContextPath = servletContext.getContextPath();", it invoked java ServletContext api, please refer to the description from the below url: http://docs.oracle.com/javaee/6/api/javax/servlet/ServletContext.html " Returns the context path of the web application. The context path is the portion of the request URI that is used to select the context of the request. The context path always comes first in a request URI. The path starts with a / character but does not end with a / character. For servlets in the default (root) context, this method returns "". " This is why the issue won't occur when using the default (root) context.(in default (root) context, portalServletContextPath ="") However, we may use different api to achieve the requriement. ## Solution: Liferay.PortletURL.createURL('<%= PortletURLFactoryUtil.create(request, portletId, themeDisplay.getPlid(), PortletRequest.RENDER_PHASE) %>') ## I will close the ticket as "Won't fix" Thanks, Hai
Hai Yu ha aggiornato LPS-48693.
22.46
luglio 22
Hai Yu ha aggiornato LPS-48662.
18.44
Hai Yu ha aggiornato LPS-48662.
luglio 22
Hai Yu ha aggiornato LPS-48720.
Hai Yu ha aggiornato LPS-48720.
Hai Yu ha aggiornato LPS-48720.
luglio 17
Hai Yu ha lasciato un commento su LPS-44761.
luglio 16
Hai Yu ha aggiornato LPS-48432.
19.41
Inscriviti alle attività di Hai Yu. (Apri una nuova finestra)