I am using Ember.js in my application. In a .jsp page I have a button and when I click on the button I call the url = "emberapp/myproject/routename?isFromJSP=true&data=[1,2]"
.
This correctly routes to my routename
.
The problem is, I want to read the boolean parameter (isFromJSP) and list parameter (data) in my controller or route. How to do so?
PS:I know to use window.location.href but it is not returning the current page in my EMBER init function. I am using AJAX calls to get data for my ember page in the init function and I want to pass these request parameters as request json objects.