Allow friendly page aliases in URLs

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?

Fixed

Details

Priority

Affects versions

Fix versions

Components

Assignee

Reporter

Created December 10, 2007 at 4:41 AM
Updated October 14, 2016 at 10:02 AM
Resolved May 14, 2014 at 4:25 AM