__name__ module not working correctly in multi page app

@NiBk This sounds odd Can you make a minimal example that reproduces this?