Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-89893

QWebEngineUrlRequestInfo::redirect(...) to custom scheme results in ERR_UNSAFE_REDIRECT

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.15.1
    • WebEngine
    • None
    • Windows

    Description

      When I execute 

      QWebEngineUrlRequestInfo::redirect(...)

      withing my custom URL interceptor, then it just seems it is not working. My web view just displays "cannot load" error page and URL of the view is not changed to "redirected" but keeps original one.

      For example, in my app I detect in interceptor that my original URL is "seznam.cz" and if it is, i redirect with the above method to "xyz.cz" and it seems that this is not happening at all, I still see "seznam.cz" in my web view.

       

      Have I misunderstood the purpose of redirect(...) method?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            skunkos Martin Rotter
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes