[CDF-369]: Dashboards.getQueryParameter does not correctly match the url query parameters

@pamval please review
Is this code reused from somewhere else ? 
Is so, can we reuse it ? Don't we need to add an attribution somewhere ?