Allow friendly page aliases in URLs
Description
depends on
is related to
Activity
Matthew Buckett May 14, 2014 at 4:31 AM
I've opened to fix the warning.
My instinct is to keep the old aliases as if someone bookmarked the old URL we can keep the old alias working for them.
Matthew Buckett May 14, 2014 at 4:29 AM
Thanks, closed the issue.
This issue doesn't work well in trunk now as there isn't any caching of getAliases() as got reverse merged.

Matthew Jones May 13, 2014 at 1:43 PM
I'm curious why this ticket is still open with commits from 2008 and affects version qa06.
I'm seeing an issue with this if you have this feature enabled. If you change the language in your site, it generates entirely new aliases and prints up a warning message every page refresh.
2014-05-13 14:33:22,873 WARN http-bio-8080-exec-16 org.sakaiproject.portal.api.PortalSiteHelper - More than one alias for: 9814ac27-3b7e-44a9-8c53-dc30aa8ee0d5:05014940-3d34-44bb-bc08-db8c1a013ce2
/pagealias/9814ac27-3b7e-44a9-8c53-dc30aa8ee0d5/forums <-> /pagealias/9814ac27-3b7e-44a9-8c53-dc30aa8ee0d5/foros. I'm not sure about a super fix for this? Clean up the old ids if the language is changed? I guess this is a new issue.
Matthew Buckett June 23, 2008 at 6:42 AM
Well caught. It was just an arbitrary limit, I've upped the default to 15 and it's also configurable through sakai.properties:
maxLength@org.sakaiproject.portal.service.AliasingSiteAdvisor=22
Stephen Marquard June 21, 2008 at 8:56 AM
Why limit aliases to 12 characters specifically? Sadly this causes Announcements to get truncated in the URL. Perhaps a more generous limit like 15?
Allow nice page names in the URL so rather than
http://sakai.oucs.ox.ac.uk/portal/site/36e31e17-3384-4b2a-80a4-ce7c570a3421/page/f2f53ad5-9a3a-43bb-8094-4cb117bd4640
we could have
http://sakai.oucs.ox.ac.uk/portal/site/36e31e17-3384-4b2a-80a4-ce7c570a3421/page/siteinfo
There was a discussion about this on sakai-dev at:
http://thread.gmane.org/gmane.comp.cms.sakai.devel/19177