Forum Discussion
What_Lies_Bene1
Dec 18, 2012Cirrostratus
OK, try this;
when HTTP_REQUEST {
Check for a 'bad' URI
if { [[HTTP:uri]] contains "=OpenDocument" } {
Find the iDocID and save it in variable newpath
set docid [findstr [HTTP::uri] "iDocID" 1 "&"]
Log what we saved so we can check it's working, using to comment this out later
log local0. "iDocID is: $docid"
Redirect using the 'good' URL and the requested iDocID
HTTP::redirect "http://[[HTTP::host]]/BOE/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=$docid"
log local0. "Redirected for iDocID: docid"
Exit
return
}
}