Skip to content

Conversation

@kagemomiji
Copy link
Owner

Fix #772
This pull request introduces improvements to how the nowPlaying/status URL is handled in the right.html template.
The previous version cannot handle the nowPlaying/status, if you configure CONTEXT_PATH.

URL Handling Improvements

  • Added a JavaScript variable nowPlayingStatusUrl that uses Thymeleaf to evaluate the correct URL for nowPlaying/status, replacing hardcoded strings and improving maintainability.
  • Updated the addStatus function to use the new nowPlayingStatusUrl variable when constructing the fetch request, ensuring consistency and correctness.

Robustness

  • Added a check in addStatus to return early if the target table element does not exist, preventing potential JavaScript errors.

@kagemomiji kagemomiji merged commit 8facb62 into main Aug 24, 2025
17 checks passed
@kagemomiji kagemomiji deleted the issue772-fix-right-panel-with-context-path branch August 24, 2025 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Righ panel doesn't show any information

2 participants