svn commit: r1745569 - /ofbiz/trunk/applications/content/src/org/ofbiz/content/cms/CmsEvents.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1745569 - /ofbiz/trunk/applications/content/src/org/ofbiz/content/cms/CmsEvents.java

pranayp
Author: pranayp
Date: Thu May 26 06:56:39 2016
New Revision: 1745569

URL: http://svn.apache.org/viewvc?rev=1745569&view=rev
Log:
[OFBIZ-7119] Now cmssite will start working again with mapkey in the url in trunk. The code block was commented while working on OFBIZ-4502.
As of now no WebSitePathAliases have been setup for any of the pages in cmssite demo data and that's one of the additional option to serve pages through CMS. So keeping it open for serving pages through mapkey shouldn't be blocked.  Data samples for usage of WebSitePathAlias can be added to demonstrate the ability CMS offers.

Thanks Deepak and Jacques for your comments and help.

Modified:
    ofbiz/trunk/applications/content/src/org/ofbiz/content/cms/CmsEvents.java

Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/cms/CmsEvents.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/cms/CmsEvents.java?rev=1745569&r1=1745568&r2=1745569&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/src/org/ofbiz/content/cms/CmsEvents.java (original)
+++ ofbiz/trunk/applications/content/src/org/ofbiz/content/cms/CmsEvents.java Thu May 26 06:56:39 2016
@@ -173,8 +173,6 @@ public class CmsEvents {
             Locale locale = UtilHttp.getLocale(request);
 
             // get the contentId/mapKey from URL
-            /* We use path aliases for everything anyway, so don't interpret the pathInfo as contentId.
-             * This makes 404 pages much faster.
             if (contentId == null) {
                 if (Debug.verboseOn()) Debug.logVerbose("Current PathInfo: " + pathInfo, module);
                 String[] pathSplit = pathInfo.split("/");
@@ -184,7 +182,7 @@ public class CmsEvents {
                     mapKey = pathSplit[1];
                 }
             }
-            */
+
 
             // verify the request content is associated with the current website
             int statusCode = -1;