Redirect old album path to new one #12

Closed
opened 2018-07-27 14:06:06 +01:00 by aheathershaw · 4 comments
Owner

Following on from the change in #11, provide an option to redirect the old album URL to the new one.

Following on from the change in #11, provide an option to redirect the old album URL to the new one.
aheathershaw added this to the Version 2.0.0 milestone 2018-07-27 14:06:06 +01:00
aheathershaw self-assigned this 2018-07-27 14:06:06 +01:00
aheathershaw added the
enhancement
label 2018-07-27 14:06:06 +01:00
Author
Owner

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.

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.
Author
Owner

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

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
Author
Owner

Just need to add the checkbox when editing an album to add the redirect automatically to close this off.

Just need to add the checkbox when editing an album to add the redirect automatically to close this off.
Author
Owner
Migrated from https://github.com/andysh-uk/blue-twilight/issues/12
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: aheathershaw/blue-twilight#12
No description provided.