Wrong redirect when switching between Grid View and List View #902

Closed
opened 2026-02-04 22:48:02 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @HitomiTenshi on GitHub (Nov 11, 2018).

Describe the bug
Switching between views (e. g. Grid View -> List View or List View -> Grid View) redirects to /translations.

This bug happens in the demo site as well as on my instance.

Steps To Reproduce

  1. Visit the demo site.
  2. Click on the Books View.
  3. Switch your current view in the top left corner.
  4. You will end up in https://demo.bookstackapp.com/translations which has a bunch of random text.

Video

view switch bug

This bug happens in the Books and Shelves view.

Expected behavior
View should be switched without redirecting to /translations.

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): v0.24.1
  • PHP Version: v7.2.12
  • Hosting Method (Nginx/Apache/Docker): nginx v1.15.5
Originally created by @HitomiTenshi on GitHub (Nov 11, 2018). **Describe the bug** Switching between views (e. g. `Grid View` -> `List View` or `List View` -> `Grid View`) redirects to `/translations`. This bug happens in the [demo site](https://demo.bookstackapp.com) as well as on my instance. **Steps To Reproduce** 1. Visit the [demo site](https://demo.bookstackapp.com). 2. Click on the [Books View](https://demo.bookstackapp.com/books). 3. Switch your current view in the top left corner. 4. You will end up in https://demo.bookstackapp.com/translations which has a bunch of random text. **Video** ![view switch bug](https://user-images.githubusercontent.com/7304212/48316584-ee1dc500-e5e5-11e8-9ae0-f3ab910ff73e.gif) This bug happens in the [Books](https://demo.bookstackapp.com/books) and [Shelves](https://demo.bookstackapp.com/shelves) view. **Expected behavior** View should be switched without redirecting to `/translations`. **Your Configuration (please complete the following information):** - Exact BookStack Version (Found in settings): v0.24.1 - PHP Version: v7.2.12 - Hosting Method (Nginx/Apache/Docker): nginx v1.15.5
Author
Owner

@ssddanbrown commented on GitHub (Nov 12, 2018):

Thanks for reporting @HitomiTenshi but I can't seem to reproduce this. Can see how it might happen though. The redirect is a redirect back so probably set via HTTP header but curious to know what's going on.

Perhaps your adblock extension is altering headers in some way?

@ssddanbrown commented on GitHub (Nov 12, 2018): Thanks for reporting @HitomiTenshi but I can't seem to reproduce this. Can see how it might happen though. The redirect is a redirect back so probably set via HTTP header but curious to know what's going on. Perhaps your adblock extension is altering headers in some way?
Author
Owner

@HitomiTenshi commented on GitHub (Nov 13, 2018):

Oh I found out why it was happening. I was blocking the referer header. I allowed it on this site and everything works fine again. Sorry, my fault 😄

@HitomiTenshi commented on GitHub (Nov 13, 2018): Oh I found out why it was happening. I was blocking the referer header. I allowed it on this site and everything works fine again. Sorry, my fault 😄
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#902