currentUrl in WResource
I created a test resource to load some text fragments using Ajax. It's not a global resource and so I call Resource::setInternalPath( "something" ). When I issue a request for this resource, I get back the application html and the application log says "Wt: refreshing session", basically smashing the session (clicking on a link now spams the server with requests - this might be another issue).
When I looked into the code it seems that "WResource::setInternalPath" clears "currentUrl_". When I call "generateUrl" after "setInternalPath" everything works fine. Either there seems to be a bug or this should be mentioned in the documentation.
Updated by Koen Deforche over 6 years ago
- Status changed from New to InProgress
- Assignee set to Koen Deforche
But you're right about the issue. We'll fix it for 3.3.5.