Open dhedlund opened 11 years ago
A quick fix would be to redirect activatepdx.org to portland.activatehub.org (slightly different effect from what is described, but better than current behavior).
Rock. Peter, can you make that quick fix redirect?
Also, in WordPress adjustment, pointing the ActivateBay logo to sfbay.activatehub.org/startup
Redirect
If the location of a calendar moves, we need a way to automatically take people to the new location of that calendar. The URL of the calendar in the user's browser should change to the new or correct URL using a redirect and any additional path parts and parameters should be retained. Examples:
Alias
If a site has a vanity URL or domain, it would be nice for people to optionally use that to access the site. Aliases should not redirect to the real calendar, but rather pretend that the calendar is at the aliased URL. Examples:
Implementation
The domain and _siteprefix attributes of the
Site
model should be moved into aSiteURL
model that has aSite.has_many :SiteUrls
relationship. The domain and site_prefix can be combined into a single attribute calledurl
orbase_url
. The new model could also have an attribute calledrelationship
that allows the values primary, redirect or alias. With this information, theApplicationController
should be able to determine whether to redirect the user to the primary site URL or handle the request normally.