The top navbar is the parent page. I have used ReplAuth and it then reloaded the URL within the iframe without affecting the parent page, thus nesting the page within itself. Once logged in, refreshing the parent page will fix this, but it’s a manual fix.
Removing that causes it to not refresh the page at all. Also, how do I un-verify myself? I’m running out of profiles to try this on and it somehow remembers that I signed in even when incognito.
Yeah but I think they’re confused because the script they are running is in the so called parent, and they are trying to call that when the popup closes.
The script is in the iframe; it’s a child. I need the child to reload the parent instead of just loading the parent within the child (thus creating an iframe within an iframe instead of just one iframe).
Yes. Once the ReplAuth popup closes, I want the parent page to refresh.
Basically, I have /upload and /upload-basic or something like that. /upload-basic is the ReplAuth webpage embedded in an iframe on /upload. I wanted the ReplAuth webpage of /upload-basic to refresh its parent page of /upload once authorized, but instead it loaded it within the iframe.
I did not find the answer to my question; however, I did solve my problem. Writing this out like this made me realize that I just needed the ReplAuth script to reload /upload-basic instead. Problem solved.
I thought about it, but technically, though I solved my problem, I didn’t answer the question. Furthermore, people keep criticizing me for solving my own topics. I’ll do it though.
Ohh… I was looking in upload-basic thinking that was the actual page but now I see it’s in an iframe within upload… although having understood that now, I don’t know why you wouldn’t just have it as its own page…
Now understanding what you’re actually trying to do, dragonhunter1 was on the right track, it’s just that I believe opener is undefined, likely because it’s not a popup or something.
I forked your repl tested this using window.parent.location.reload(); instead and it worked fine.
It still only works for me if I set the reload URL to /upload-basic as following your advice still doesn’t reload the parent frame. However, I no longer need to know how to do this as now I’m just reloading the embedded page instead of the whole tab. You see, since it loaded the page inside the page, I get two navbars.