Colleagues,

        In OSX I'm using an NSURLRequest to load a file url in WKWebView. Works 
fine unless I try to add an anchor to the path, for example,

[path]/filename.html#anchorname

The problem appears to be that the # gets escaped to %23. 

I tried [NSURL URLWithString: anchorname relativeToURL: baseURL] but this 
produces a url with the form 

#anchorname--[path]/filename.html

and that doesn't work (opens the file, but ignores the anchor).

Is there any way to use an anchor in a file url for WKWebView?

Thanks, Jeff



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to