Change the URL in the browser while redirecting the user to aliasTo option of pathAlias

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

Change the URL in the browser while redirecting the user to aliasTo option of pathAlias

Pawan Verma
Hello Devs,

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 rendered properly
(as expected) but the URL of the page (in browser) doesn't change. IMO, 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

Please let me know your thoughts. Thanks!
--
Kind Regards,
*Pawan Verma*
Reply | Threaded
Open this post in threaded view
|

Re: Change the URL in the browser while redirecting the user to aliasTo option of pathAlias

Jacques Le Roux
Administrator
Le 09/05/2019 à 14:28, Pawan Verma a écrit :

> Hello Devs,
>
> 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 rendered properly
> (as expected) but the URL of the page (in browser) doesn't change. IMO, 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
>
> Please let me know your thoughts. Thanks!
+1

Jacques

Reply | Threaded
Open this post in threaded view
|

Re: Change the URL in the browser while redirecting the user to aliasTo option of pathAlias

Deepak Dixit-4
In reply to this post by Pawan Verma
+1

This is the case of redirection, like if you updated URL of your page/blog,
It should redirect to a new URL with response status moved temporarily or
moved permanently

Please feel free to open jira ticker for the same.

Kind Regards,
Deepak Dixit
DIRECTOR OF PRODUCT ENGINEERING
mobile: +91 9826754548
email: [hidden email]
*www.hotwax.co <http://www.hotwax.co/>*


On Thu, May 9, 2019 at 6:09 PM Pawan Verma <[hidden email]>
wrote:

> Hello Devs,
>
> 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 rendered properly
> (as expected) but the URL of the page (in browser) doesn't change. IMO, 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
>
> Please let me know your thoughts. Thanks!
> --
> Kind Regards,
> *Pawan Verma*
>