What hardware is this? I have read something about older TP-Links leaking connections during boot, before OpenWrt was fully up and running. Maybe something similar is at play here?
By default, the OpenWrt firewall blocks connections from the WAN unless they were established from within the LAN.
Could you try a 19.07 RC2 build to see of you can reproduce it? Backup your configuration in case you want to reflash master, but switch to 19.07 without keeping configs, then reconfigure.
Can you login or is it just the login screen leftover in the browser cache?
If you can login, take a backup of the configuration, reset to factory defaults, configure the minimal to connect to the internet and try browsing once again.
I will repeat the warning here because it is important: It is a very bad idea to expose a freshly reset/flashed router's configuration (ssh and/or web) to the WAN in general, but even more so if there is no password configured (the default state after a reset or flash) .
i already read that guide
what i need is sample custom config file
how it looks like
i wanna make sure before i do flash my router
coz if something wrong happens, i cant totally access my router in home because im abroad now.
If you don't have physical access to your router, don't update it. And most certainly do not try to update it with a firewall that will expose the router to the internet with ssh access (and no password). That is just asking for major issues.