invidious
invidious copied to clipboard
[Bug] Instance redirect link in error template does not follow user preferences
Describe the bug
The redirect links in the error templates does not follow the users preference on whether to automatically redirect or not.
Steps to Reproduce
Get an info exception, see that the switch instance link is a link to /redirect
Get a standard exception, see that the switch instance link is a link to https://redirect.invidious.io
Logs
Screenshots
Additional context
Good catch! I think that we should always link to /redirect and let that endpoint handle the appropriate logic. that woould reduce the amount of duplicate code everywhere. What do you think?
Sounds good to me