internal links not using domain of main page

348 views
Skip to first unread message

Peter Warren

unread,
Oct 12, 2012, 6:26:21 AM10/12/12
to phan...@googlegroups.com
page.open('https://www.somewebsite.com', function(status) {

       page.evaluate(function() {
            document.location.href="/anotherpage.aspx";
    });
});

results in:
CONSOLE: Not allowed to load local resource: file://login.js/anotherpage.aspx (from line #undefined in "undefined")

if I use window.location.href="/anotherpage.aspx" the same error is reported

Peter Warren

unread,
Oct 12, 2012, 7:05:19 AM10/12/12
to phan...@googlegroups.com
This could be a big issue particularly when the webpage redirects to another page without specifying the domain and protocol.

James Greene

unread,
Oct 12, 2012, 11:02:41 AM10/12/12
to phan...@googlegroups.com
This is a well-known issue that has appeared on the forum many times and has several existing bugs logged for it.  Try to search through the forum and issue list next time, please.

Existing issues:

That said, I agree with you that this issue is an incredibly bad one that seems to be biting many users lately, and should be resolved ASAP.

~~James
Reply all
Reply to author
Forward
0 new messages