Access to absolute base URL
In found myself in a position where I needed the absolute base URL. Unfortunatly it was not available outside of the JWT library package,
(because there is no way to access it).
The Session class maintains a string value of this URL so by adding one public method to WApplication it should be possible. Another solution would be to make the Session object available to library users, but I guess that it would be more risky.
Updated by Koen Deforche about 11 years ago
- Status changed from New to Resolved
- Assignee set to Koen Deforche
I've implemented this using a method WApplication.makeAbsoluteUrl() which makes an absolute URL out of a given URL. If you pass a empty URL then getAbsoluteBaseUrl() is returned.