[jira] [Commented] (OFBIZ-11018) Redirection of pathAlias to aliasTo does not work properly

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

[jira] [Commented] (OFBIZ-11018) Redirection of pathAlias to aliasTo does not work properly

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-11018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16837778#comment-16837778 ]

Pawan Verma commented on OFBIZ-11018:
-------------------------------------

Hello [~jacques.le.roux],

Thanks for reviewing this.

Edit WebSite Path Alias is not working, I have logged [OFBIZ-11022|https://issues.apache.org/jira/browse/OFBIZ-11022] for this.

 

 
{code:java}
java.lang.IllegalArgumentException: Passed List had more than one value.
{code}
 

For this error: As I see from the data provided by you two *WebSitePathAlias* records has been created in the system as both have different fromDate with the same pathAlias. Code is using queryOne to fetch the record, I have updated it to use queryFirst instead(*Updated patch for this*).

 

For checking this functionality:

I would suggest creating two new pathAlias from the content screen or manual XML data. Original pathAlias should not have any content associated with it(existing condition) and associate content with the aliasTo.

 

Please let me know in case of any concern. Thanks!

> Redirection of pathAlias to aliasTo does not work properly
> ----------------------------------------------------------
>
>                 Key: OFBIZ-11018
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11018
>             Project: OFBiz
>          Issue Type: Bug
>          Components: cmssite, content
>    Affects Versions: Trunk, Release Branch 17.12, Release Branch 18.12
>            Reporter: Pawan Verma
>            Assignee: Pawan Verma
>            Priority: Major
>         Attachments: OFBIZ-11018.patch
>
>
> Link of discussion: [https://markmail.org/message/s37whdteejqdzkha]
> In CMS, we can redirect the user to different path alias using 'aliasTo' field of *WebSitePathAlias* entity.
> Example - 
>  <WebSitePathAlias pathAlias="demoHome" webSiteId="CmsSite"  fromDate="2019-05-01 00:00:00.0"  aliasTo="newDemoHome"  />
> Based on the above data, if the user hit the 
> [https://localhost:8443/cmssite/cms/demoHome], the CMS will internally render the content for 'newDemoHome' pathAlias.
> As per my observation, the content for  "newDemoHome" is renderd properly (as expected) but the URL of the page (in browser) doesn't change.
> We should also update the URL also, i.e. change browser URL from
> [https://localhost:8443/cmssite/cms/demoHome] to [https://localhost:8443/cmssite/cms/newDemoHome]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)