Redirect old album path to new one #12
Labels
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: aheathershaw/blue-twilight#12
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Following on from the change in #11, provide an option to redirect the old album URL to the new one.
This could be a table in the database - original URL -> album ID.
The controller that loads an album should check for the presence of a redirect record, if an album matching the path does not exist.
Maybe another tab on the album's admin page to manage redirects.
If an album URL is specified that matches a redirect, it supercedes the redirect.
When updating an album, if the parent has changed, ask the user (check box) if they want to add a redirect for the previous URL.
The new table album_redirects can hold a source URL that starts with a slash - e.g. /andy
This should be accessed using /a/andy
Just need to add the checkbox when editing an album to add the redirect automatically to close this off.
Migrated from https://github.com/andysh-uk/blue-twilight/issues/12