Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix redirect after deleting item #5930

Merged
merged 6 commits into from
Aug 23, 2024
Merged

Fix redirect after deleting item #5930

merged 6 commits into from
Aug 23, 2024

Conversation

DrWarpMan
Copy link
Contributor

Changes
Deleting an item (episode, season, ..) will now redirect to the parent of that item instead of redirecting to homepage.

I wonder why is this behavior disabled in the first place and why it hasn't been changed/looked at in almost 8 years,
since it was added (ef8dbee). Or am I missing something?

Issues
Fixes #1038

Redirects to the parent of an item instead of homepage after deleting the item
@DrWarpMan DrWarpMan requested a review from a team as a code owner August 19, 2024 09:07
@thornbill
Copy link
Member

This context menu is used all over the place and in most cases this would not be the desired behavior. i.e. Deleting an item on the home page.

@DrWarpMan
Copy link
Contributor Author

This context menu is used all over the place and in most cases this would not be the desired behavior. i.e. Deleting an item on the home page.

I see, so what changes would you propose then?
Would route checks be enough / good idea?

@thornbill
Copy link
Member

Looks like it would be better to just change the behavior here: https://github.com/jellyfin/jellyfin-web/blob/master/src/controllers/itemDetails/index.js#L2024

DrWarpMan and others added 3 commits August 22, 2024 11:42
Redirects to the parent of an item instead of homepage
after deleting the item
@DrWarpMan
Copy link
Contributor Author

DrWarpMan commented Aug 22, 2024

I moved the logic there, would you say it's ok now? @thornbill

Copy link

@jellyfin-bot
Copy link
Collaborator

Cloudflare Pages deployment

Latest commit 99f84fc528caf86af97c703ec11ab1569638b372
Status ✅ Deployed!
Preview URL https://7893e702.jellyfin-web.pages.dev
Type 🔀 Preview

Copy link
Member

@thornbill thornbill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 lgtm

@thornbill thornbill added this to the v10.10.0 milestone Aug 23, 2024
@thornbill thornbill merged commit 5bd61d8 into jellyfin:master Aug 23, 2024
12 checks passed
@thornbill thornbill added the enhancement Improve existing functionality or small fixes label Aug 23, 2024
@DrWarpMan DrWarpMan deleted the fix-delete-item-redirect branch August 23, 2024 19:21
@brianjmurrell

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve existing functionality or small fixes
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Deleting season jumps back to home screen
4 participants