my page url in browser shows as
http://localhost:4502/content/mywebsite/mypage.html?query1=param1&query2=param2
In my viewhelper When i user
1- getRequest().getRequestURL() return http://localhost:4502/content/mywebsite/mypage.html
2- getRequest().getQueryString() return query1=param1&query2=param2
How i can get url with Query in viewhelper class
eg:-http://localhost:4502/content/mywebsite/mypage.html?query1=param1&query2=param2
Solved! Go to Solution.
Views
Replies
Total Likes
Via getRequest() you access all properties from SlingHttpServletRequest.
Views
Replies
Total Likes
${request.requestParameterMap['query1'][0].toString}
Hi Feike,
How can i get full URL in component viewHelper?
like http://localhost:4502/
Views
Replies
Total Likes
Via getRequest() you access all properties from SlingHttpServletRequest.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies