As you can see in the screenshot below, the page title is formatted correctly as a preview. However, when the actual app is rendered, the dynamic part disappears after a brief second.
It appears like the dynamic variable is replaced by an empty one at one specific moment, and therefore feels like a bug to me.
Hey @emozio! I have a feeling this might not work as expected. Retool is a single-page application, so it loads the content dynamically, meaning it might not have access to this variable immediately. You can however have a placeholder until the variable is available.
Well, then this should work as expected. I am actually not referring to any content, but merely to Retool's own variable that's made available natively. Also, in the placeholder they encourage the usage of variables, so I expected this to work. It's rather important when you want to differentiate between tabs.
The issue is that retoolContext.currentPage is not accessible immediately upon page load?
Or that when you're switching pages there is a brief delay before the new page title is shown? I do see the slight delay when switching pages within the multipage apps.
Tried to reproduce this but the custom title stayed visible after page load for me. And is able to change along with page changes for a multipage app.
What browser are you using? I did my testing on Chrome. If you are able to screen record the behavior that would be super useful to reproduce. Guessing you saw this on a hard page refresh?
I don't really have much more to add, besides the fact that the page title does seem to work after navigating to other pages. But after refreshing my browser page, the dynamic part ({{ _.capitalize(retoolContext.currentPage) }}) is ignored and left out. Then, again, navigating will resolve it.