Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message content from local json not visible unless page is refrehed #867

Open
ylaizet opened this issue Feb 5, 2025 · 0 comments
Open

Comments

@ylaizet
Copy link

ylaizet commented Feb 5, 2025

Describe the bug

Hello, I have a page configuration with a message defined as :

I only pasted here the message part of the configuration file

message:
  url: assets/menu.json
  mapping:
    content: 'message'
  title: "Menu de la cafet"

Here is the content of menu.json

{"message":"<table><tr><td class=\"pl-3 pt-3\">Table not found for 05/02/2025</td><td class=\"pl-3 pt-3\">CRY</td><td class=\"pl-3 is-size-3\">😭</td></tr></table>"}

When I click on the link for this page, the title of the message is shown but not the content. I have to refresh the web page in my browser to have the content of the message displayed.

  • I tried with firefox, chromium. In private tabs, history cleared and I always get this issue.
  • I tried also the refreshInterval: 10000 parameter without success.
  • It seems to work well with url content but not with "local files"

Expected behavior

When I click on the link for this page, I expect the title and the content of the message to be displayed directly without having to reload the page.

Logs & errors

No error in the console.

Screenshots

Configuration

See above

Thanks for this nice tool!

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

No branches or pull requests

1 participant