The log page will redirect to the overview page when refreshing #5803

Closed
opened 2026-02-21 18:12:40 -05:00 by yindo · 1 comment
Owner

Originally created by @QunBB on GitHub (Sep 25, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.8.3

Cloud or Self Hosted

Cloud

Steps to reproduce

https://github.com/user-attachments/assets/1003c8db-d51e-467a-bac2-8b1c66bb4793

✔️ Expected Behavior

The log page should be still log page after refreshing

Actual Behavior

The log page will redirect to the overview page when refreshing the log page

Originally created by @QunBB on GitHub (Sep 25, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.8.3 ### Cloud or Self Hosted Cloud ### Steps to reproduce https://github.com/user-attachments/assets/1003c8db-d51e-467a-bac2-8b1c66bb4793 ### ✔️ Expected Behavior The log page should be still log page after refreshing ### ❌ Actual Behavior The log page will redirect to the overview page when refreshing the log page
yindo added the 🐞 bug label 2026-02-21 18:12:40 -05:00
yindo closed this issue 2026-02-21 18:12:40 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Sep 25, 2024):

Hello, @QunBB! I'm here to help you with any bugs, questions, or contributions you have regarding Dify. Let's work together to resolve the issue you're facing.

The issue you're experiencing, where the log page redirects to the overview page upon refreshing, could be related to the routing logic or state management in the log page component.

The pageType state is managed and initialized in the log page component by passing the PageType.log value as a prop to the Main component. The Main component, which is actually the LogAnnotation component, uses this pageType prop to determine which content to display [1][2].

Additionally, the TabSlider component changes the route based on the selected tab, which might be causing the redirection issue if the state is not preserved correctly during a refresh [2].

To address this, ensure that the pageType state is correctly set to PageType.log when the log page is loaded or refreshed. You might need to check the initialization logic and any conditional redirects that could be affecting the routing behavior.

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Sep 25, 2024): <!-- Greeting --> Hello, @QunBB! I'm here to help you with any bugs, questions, or contributions you have regarding Dify. Let's work together to resolve the issue you're facing. <!-- Answer --> The issue you're experiencing, where the log page redirects to the overview page upon refreshing, could be related to the routing logic or state management in the log page component. The `pageType` state is managed and initialized in the log page component by passing the `PageType.log` value as a prop to the `Main` component. The `Main` component, which is actually the `LogAnnotation` component, uses this `pageType` prop to determine which content to display <sup>[[1]](https://github.com/langgenius/dify/blob/main/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/logs/page.tsx)</sup><sup>[[2]](https://github.com/langgenius/dify/blob/main/web/app/components/app/log-annotation/index.tsx)</sup>. Additionally, the `TabSlider` component changes the route based on the selected tab, which might be causing the redirection issue if the state is not preserved correctly during a refresh <sup>[[2]](https://github.com/langgenius/dify/blob/main/web/app/components/app/log-annotation/index.tsx)</sup>. To address this, ensure that the `pageType` state is correctly set to `PageType.log` when the log page is loaded or refreshed. You might need to check the initialization logic and any conditional redirects that could be affecting the routing behavior. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#5803