As far as I can see this is a correct behavior even if it is not what you expected.
when you execute directActionURLForActionNamed on the context you create a fragment URL that includes a query string. If you pass this to WOHyperlink it will take the string as a URL fragment check if there is a session and if there is one will try to append the session id to the URL. This is the correct behavior. If you want to suppress this you need to add a binding "?wosid=false;" or pass a query dictionary to WOHyperlink with that information.
You can simplify your life by using WOHyperlink:
public NSDictionary<String, Object> downloadQueryDictionary() { return new NSDictionary<String, Object>(new Object[] { "/Somepath/test.pdf", }, new String[] { "filePath" }); }
Hyperlink6: WOHyperlink { directActionName = "download_video"; queryDictionary = downloadQueryDictionary; ?wosid=false; }
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
|