"Undefined" sometimes appears in the URL of my ASP.NET application (has something to do with Google?)

Some users repeatedly encounter a very mysterious problem when using my web application.

In the middle of use, they will click a button or link that will take them to another page, but there will be a "page not found" error, because the URL looks something like this:

http://www.correctwebsitename.com/ undefined

I thought it might be a javascript error in my application: redirecting is done by selecting the page name (possibly with some parameters), where one of the values ​​is bad, which leads to the page name = "undefined". But in my application there is no such code in the application , and this happens on different pages, it would seem, by accident .

One thing that seems to do this most often is that the user first logged in by clicking the link in the email in gmail . But the user who cut and pasted the link URL into the browser window said that this still happened. There are some hints around googling around that some kind of Google forwarding or caching is happening behind the scenes .

Any ideas?

Edit:
I do not get answers from anyone who is familiar with how gmail links work, etc. Does anyone know which Google tags are β€œfreezing”?

2:
, - , .

+5
2

, , gmail - . . gmail :

gmail

X -

, ... , Google, .

Google , , :

rwt = function(){};

, - gmail.


rwt?

rwt() - javascript Google, .

, "greasemonkey" , ​​ mozilla.

https://www.google.com.br/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CCUQFjAA&url=https%3A%2F%2Faddons.mozilla.org%2Fpt-BR%2Ffirefox%2Faddon%2Fgreasemonkey%2F&ei=iWNtUIXjIoyQ8wTxv4DQAQ&usg=AFQjCNEO9EJcHp9rAmKyD_XZF2Bt6hs_YQ&sig2=P19xVUsD-Q1G_9AiUBP3PQ

https://addons.mozilla.org/pt-BR/firefox/addon/greasemonkey/

rwt() - , , gmail , .


gmail, , , http://www.correctwebsitename.com/undefined http://www.correctwebsitename.com , .

, gmail , , http://www.correctwebsitename.com/undefined .


, , , ,

ASP

if not request.UrlReferrer is nothing then
    response.redirect (request.UrlReferrer.tostring)
end if

JS ( undefined)

if (window.location.href.toLowerCase().indexOf('undefined') > -1) {
    // this works
    window.location.href = document.referrer;

    // this works too (uncomment to enable)
    // history.back();
}

, URL- ,

+1

.

- , , ?

, , ex "AddThis" # URL-, , javascript location.href "undefined" - , js.

#, , .

"location.href" , -.

, .

, 404 - Referrer.

0

All Articles