The back button takes me back to the trending page
The back button instead takes me to the video I clicked on previously.
I'm not sure if this is actually a bug or expected behavior but I think its more intuitive for the back button to take the user to where they were previously instead of the last video they were watching.
Hmmm. So I'm guessing your preferred behaviour would be that the back button instead minimizes the video, while preserving the backstack? That makes sense to me.
I think this was already discussed in # 2907, and is intended behaviour. See some of avently's comments on this: https://github.com/TeamNewPipe/NewPipe/pull/2907#issuecomment-573734453 https://github.com/TeamNewPipe/NewPipe/pull/2907#issuecomment-592999951 and in particular the answer to my same concern https://github.com/TeamNewPipe/NewPipe/pull/2907#issuecomment-662156694
So I think we settled on this behaviour, which makes sense and is useful to help not losing the whole backstack every time, and this will most probably stay this way.
and is useful to help not losing the whole backstack every time
The backstack isn't lost on minimizing, though? Quoting from one of avently's comments you linked:
Minimizing actually shouldn't do anything with backstack. When you minimize a video it looks like a mini player, backstack (== history of played videos) is untouched, that's it, no hidden logic behind.
Intended behavior. You are asking about removing history. It's the thing that took me the most of the time to make it working like this.
So, yeah, I like it and will not change. If any developer wants to implement a setting that can be used to enable/disable history, let him do it. It's a couple of lines of code. Actually one line + lines for the setting:)
But I will not be that guy.
Intended behavior. You are asking about removing history
How?
So I'm guessing your preferred behaviour would be that the back button instead minimizes the video, while preserving the backstack?
@opusforlife2
So I'm guessing your preferred behaviour would be
It's only you guessing, he said nothing about preserving a history
I'm not sure if this is actually a bug or expected behavior but I think its more intuitive for the back button to take the user to where they were previously instead of the last video they were watching.
The user never said anything about _removing_ history either, so I'm not sure why you should assume that must be the case.
And anyway, _even if_ the issue poster naively assumes backstack history has to be removed to fix the bug, if we know that isn't the case, we can just implement the smarter fix which preserves the backstack anyway.
@opusforlife2 he marked the issue as a bug, so yeah, it means that he thinks that this functionality is a mistake.
I disagree with it and I said why.
Do you want to disable history too?
Do you want to disable history too?
(╯°□°)╯︵ ┻━┻
Okay, no more speculating on what the issue poster wants. That way lies madness.
I'm going to talk only about my thoughts on what the navigation could be like if a fix were to be implemented. Note: nowhere does it involve removing history. I _love_ history. History is _important_. It _must_ be _preserved_. End of story.
From the steps to reproduce in the OP:
A possible way to navigate that fixes the problem:
@opusforlife2 that'd result in the same exact unexpected behaviour: pressing back in the second situation does not bring you back to the previous page. And also having two different behavioues based on some hidden state is not a good idea imo. I'd keep it as it is now: when you press back you go to the previous video, and when you drag down you go to the previous (trending) page.
@Stypox absolutely agree!
That makes sense. Closing this, then.
Most helpful comment
@opusforlife2 that'd result in the same exact unexpected behaviour: pressing back in the second situation does not bring you back to the previous page. And also having two different behavioues based on some hidden state is not a good idea imo. I'd keep it as it is now: when you press back you go to the previous video, and when you drag down you go to the previous (trending) page.