Article

From:
To:
David Moorhouse
Subject:
Re: WebBroker Action PathInfo requires the script name ?
Newsgroup:
embarcadero.public.delphi.internet.isapi-webbroker

Re: WebBroker Action PathInfo requires the script name ?

Not sure whether this is a bug or not (and I have no time to investigate). Here's my work around. On the BeforeDispatch event handler, check if the Action items PathInfo has been updated and fix if not.

procedure TWebModule1.WebModuleBeforeDispatch(Sender: TObject; Request:
    TWebRequest; Response: TWebResponse; var Handled: Boolean);
var
  I: integer;
begin
  if not PathsFixed then begin  // private var at TWebModule1 class level
    for I := 0 to Actions.Count - 1 do
      Actions[I]. PathInfo := Request.ScriptName + Actions[I].PathInfo;
    PathsFixed := True;
  end;
end;
FYI: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Thu, 28 Mar 2024 13:53:30 UTC
Copyright © 2009-2024
HREF Tools Corp.