i entered below url in IE
https://localhost/myApp/4117-1Space/WebHome
when i do context.getURL().toString() in my java class, i get string url as
https://localhost/myApp/4117%2D1Space/WebHome .
So here instead of character “-” i get %2D1. Is there a way i get the exact word i.e 4117-1Space not 4117%2D1Space? Here i can replace programmatically
%2D1 with “-” for quick fix but there will other spcial characters also which will be replaced with these kind of characters.
You can always do a
But you might be able to get the correct path directly through some other context method.