Message Boards

Reduction of Asset Publisher lengthy URL

Chandrashekar NM, modified 5 Years ago.

Reduction of Asset Publisher lengthy URL

New Member Posts: 24 Join Date: 4/30/15 Recent Posts

Hello,

We are using Liferay DXP[liferay-dxp-digital-enterprise-7.0-ga1] patched with de-36. In our website we have some pages and in one of the page we have Web content and Asset publisher portlet.

With this setup, our User department is complaining about the the link to the web content displayed in the Asset publisher as the link is too lengthy.

On click of the URL, the page is loaded with the lengthy URL.

Example:

http://localhost:8080/web/liferaytest/home/-/asset_publisher/xl1wOwYVHvs1/content/test-web?_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_xl1wOwYVHvs1_redirect=http%3A%2F%2Flocalhost%3A8080%2Fweb%2Fliferaytest%2Fhome%3Fp_p_id%3Dcom_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_xl1wOwYVHvs1%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview%26_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_xl1wOwYVHvs1_cur%3D0%26p_r_p_resetCur%3Dfalse%26_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_xl1wOwYVHvs1_assetEntryId%3D275084

Using Friendly URL Routes we could reduce the above link to

http://localhost:8080/web/liferaytest/home/-/asset_publisher/xl1wOwYVHvs1/content/test-web

Would there be any more possibility to reduce the URL further? for example to:

http://localhost:8080/web/liferaytest/home/test-web
 
From the above URL I would want to remove the "/-/asset_publisher/xl1wOwYVHvs1/content/" as this seems to be technical for any end user.
 
Any suggestion would be very grateful.
 
Thanks & Regards,
Chandra
thumbnail
Alfonso Crisci, modified 5 Years ago.

RE: Reduction of Asset Publisher lengthy URL

Regular Member Posts: 136 Join Date: 4/2/14 Recent Posts
Chandrashekar NM:

Hello,

We are using Liferay DXP[liferay-dxp-digital-enterprise-7.0-ga1] patched with de-36. In our website we have some pages and in one of the page we have Web content and Asset publisher portlet.

With this setup, our User department is complaining about the the link to the web content displayed in the Asset publisher as the link is too lengthy.

On click of the URL, the page is loaded with the lengthy URL.

Example:

http://localhost:8080/web/liferaytest/home/-/asset_publisher/xl1wOwYVHvs1/content/test-web?_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_xl1wOwYVHvs1_redirect=http%3A%2F%2Flocalhost%3A8080%2Fweb%2Fliferaytest%2Fhome%3Fp_p_id%3Dcom_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_xl1wOwYVHvs1%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview%26_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_xl1wOwYVHvs1_cur%3D0%26p_r_p_resetCur%3Dfalse%26_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_xl1wOwYVHvs1_assetEntryId%3D275084

Using Friendly URL Routes we could reduce the above link to

http://localhost:8080/web/liferaytest/home/-/asset_publisher/xl1wOwYVHvs1/content/test-web

Would there be any more possibility to reduce the URL further? for example to:

http://localhost:8080/web/liferaytest/home/test-web
 
From the above URL I would want to remove the "/-/asset_publisher/xl1wOwYVHvs1/content/" as this seems to be technical for any end user.
 
Any suggestion would be very grateful.
 
Thanks & Regards,
Chandra

Hi Chandra, this doc site seems a good staritng point to achieve your goal: https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/making-urls-friendlier

 

 

 

 

Chandrashekar NM, modified 5 Years ago.

RE: Reduction of Asset Publisher lengthy URL

New Member Posts: 24 Join Date: 4/30/15 Recent Posts

Hi Alfonso,

Thanks for your suggestion.

We have already checked the possibilities in the URL mentioned by you. As I told above, we have already removed most part of the URL. The issue is with the availability of "/-/asset_publisher/xl1wOwYVHvs1/content/" which seems not to be user friendly.

Any suggestions on handling the "/-/asset_publisher/xl1wOwYVHvs1/content/" part of the URL would be very helpful.

Regards,

Chandra

 

Chandrashekar NM, modified 5 Years ago.

RE: Reduction of Asset Publisher lengthy URL

New Member Posts: 24 Join Date: 4/30/15 Recent Posts
Hello Alfonso,
Hello All,

Any updates or further suggestion would be really helpful emoticon

Thanks & Regards,
Chandra