Sunday, June 9, 2019

How to get URL parameters in Lightning Web Components??

Hello Guys, hope you are doing great!

Did you have a requirement to get the URL parameters in Lightning web component and use them further??

Here is the simple answer. As LWC is purely based on Javascript, we can utilize the Javascript functions to do this activity. I was working with communities and wanted to pass on some URL parameters, here is the implementation.

This was my URL.

<Community URL>?eventid=00UJ000000AzjeuMAB

    var eventId = ((new URL(window.location.href)).searchParams.get("eventid"));

The above line will give me the Event Id retrieved from URL. Sooo simple.

I hope you liked the post and it helped. Let me know your suggestions and feedback. 

Thank you so much for visiting.


  1. We love reality that|the reality that} this casino has been in enterprise so lengthy. That allows us to see a monitor record in regard to performance. Spin Casino is licensed by the UK Gambling Commission 1xbet and controlled by the Malta Gaming Authority. These businesses present wonderful oversight in the on-line casino business, so find a way to|you probably can} game here with confidence. This is a casino that additionally cares in regards to the well-being of its gamers.

  2. The first course of where three-dimensional materials is deposited to type an object was done with materials jetting or as it was initially referred Active Stylus Pens to as particle deposition. Particle deposition by inkjet first started with continuous inkjet expertise and later with drop-on-demand inkjet expertise utilizing hot-melt inks. Wax inks were the first three-dimensional materials jetted and later low temperature alloy steel was jetted with CIT.


Salesforce: Export to Excel with Lightning Web Component

Hello Guys, I hope you are doing well. In this post, we are going to see an implementation of " Export to Excel" in lightn...