diff --git a/src/html/winpars.cpp b/src/html/winpars.cpp index ac5c5ecfbe..4108eb1873 100644 --- a/src/html/winpars.cpp +++ b/src/html/winpars.cpp @@ -323,7 +323,10 @@ wxFSFile *wxHtmlWinParser::OpenURL(wxHtmlURLType type, wxString redirect; status = m_windowInterface->OnHTMLOpeningURL(type, myfullurl, &redirect); if ( status != wxHTML_REDIRECT ) + { + myurl = myfullurl; break; + } myurl = redirect; }