> On Apr 19, 2017, at 7:28 AM, Samuel Pelletier <sam...@samkar.com> wrote: > > Hi Klaus, > > I never managed to get the url generation works as expected outside the RR > loop. > > For these case, I add a property with the base public url, construct the > required url manually and uses the src and href bindings. > > If there is a bette way, I would like to know it too.
Right, outside the RR the application is simply not aware of the host name. I was hoping I could access the woAdaptor settings from the SiteConfig.xml: <woAdaptor type="NSString">https://apps.berkling.us/Apps/WebObjects</woAdaptor> Or correctly set WOAdaptorURL which is set to "http://localhost/cgi-bin/WebObjects" Adding to that applications name + ‘.woa’ and I’d be all set. (Maybe I’ll attempt to add something to Wonder…) Thanks. > > Samuel > >> Le 14 avr. 2017 à 16:15, Klaus Berkling <webobje...@berkling.us >> <mailto:webobje...@berkling.us>> a écrit : >> >> >> Hi Gang. >> >> I’m sending a scheduled email (ERQSJob) using a WOComponent as the message >> content. When the email is sent the links in the component page are wrong. >> I tried the different pageWithName and instantiatePage methods and they >> work for non-scheduled messages. >> >> I can create a wocontext from a fake worequest: >> >> WORequest fakeRequest = new ERXRequest("GET", >> "https://apps.berkling.us/.......woa <https://apps.berkling.us/.......woa>", >> "HTTP 1.1", null, null, null); >> WOContext context = new ERXWOContext(fakeRequest); >> >> I generate the links with completeURLWithRequestHandlerKey() to an direct >> action. I also have links to web resources like images. The urls will look >> like ‘http://localhost:…https://apps.berkling.us/ >> <http://localhost:�https://apps.berkling.us/>…’, prepending the localhost >> part. >> >> Anyone tackle this before? >> >> >> Klaus Berkling >> www.berkling.us <http://berkling.us/> | Photography >> <https://kib.smugmug.com/> >> >> >> >> >> _______________________________________________ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com >> <mailto:Webobjects-dev@lists.apple.com>) >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com >> <https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com> >> >> This email sent to sam...@samkar.com > Klaus Berkling www.berkling.us <http://berkling.us/> | Photography <https://kib.smugmug.com/>
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com