Hey guys,
I've been working on a little collection of tests for a game I do, which uses Cef3.
I started up with the cefclient project, and added a bit of stuff to add a custom scheme:
The .cpp can be found here (I don't show the .h file since it only defines the RegisterTestHandler())
How it should work: I can open up a URL like test://something, and it should open file:///C:/Users/Johnny/Desktop/test.html, no matter what the string behind test:// actually is, but instead, it just opens up nothing.. When I put in a http:// URL inside the redirectURL, it works.. Can anybody help me?
Thanks in advance!
Edit: if I load the file:/// path manually, it works. Also, if I reference the test:// URL in a HTML tag, for instance like this: <img src="test://randomstring></img>, it also works, so redirecting does work in HTML tags, but not with just loading a page? Strange..