Page Title Not Working as Expected

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.

page title

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.

@emozio just so I understand.

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.

In my particular case, the page title only shows for a second on page load.

Now that you mention it, when I navigate to other pages, it does seem to work accordingly.

So it seems like the issue finds its root on the initial load.

Oh, yeah, that's strange! I wasn’t able to recreate that issue on my end.

Those are the fun ones.... I will try to get more details on this matter. In the meantime: I am using multiple pages, and I reload one of those.

Hello @emozio!

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?

Hey @Jack_T ,

I am using the latest Firefox on Ubuntu, Linux.

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.

Not a huge deal, but annoying nontheless :slight_smile:

Thank you for letting me know!

Let me test it out on firefox and see if that will reproduce the behavior.

Apologies for the annoyance but that is good to hear that navigating resolves it.