Wappler Version : 3.4.1
Operating System : Mac
Project: NodeJS, MySql8, Docker.
Expected behavior
This happens in two scenarios:
I click through to a page, pre-loader takes a while so I decide to click 'back' - this should take me to the previous screen without issues.
I click through to Stripe checkout but then press back - and the same thing happens, I get the previous page in the app but it's completely unstyled.
This is definitely something the end-users will do.
Actual behavior
What actually happens?
Once I press back, I get a completely unstyled, basic 'html' like page. So I assume assets are not re-loading on 'back'. If I refresh the page, it goes back to normal.
Was just throwing out ideas of what I would check next. I just can’t see how anything in Wappler would cause that. Hopefully the team has an idea to check.
What kind of page was it, is it a SPA where the content was loaded using AJAX? Check the network tab to see what it tries to load and if there are any errors in the console. Do you perhaps have a link to the page where we can check the issue, or perhaps you could create a small video showing the exact issue.
I don’t see any errors in network tab, but I do see one small error relating to a stripe JS, but can’t see how this is affecting this, but I’ll look into that regardless:
We saw this related to href links. If we used href rather than DMX Browser a similar thing occurred a few weeks back… Are you linking directly to pages using href anchors? If so try replacing with a DMX Browser Goto action instead. May narrow it down?
Thanks Dave, these are all internal links - noting though it does happen if we link externally and then go back. Seems to happen in quite a few scenarios
With standalone pages I have never seen it happen, looks like it stopped parsing the html (perhaps related to the SyntaxError) and the css is not applied. Also at the end of the movie I see some unrendered app connect expressions, so also JavaScript wasn’t executed there.