I have URL in Lightning Community page, I want to get value of parameter from this ULR in Lightning.


How can I get value of accountRef?

I have tried with:

accountRef: {!v.accountRef}

The result is null.

I tried with Getting the URL parameter into Lightning component using the "{! paramName}" expression

Do we have any way if we don't want to use decodeURIComponent(window.location.search.substring(1)) on controller js?

  • You declared <aura:attribute name="accountRef" type="String" /> ?
    Commented Sep 19, 2017 at 6:57

1 Answer 1


If I use on app lightning builder, it worked for me Here is example what I use on lightning app:


hello {!v.nameApp}

Not the answer you're looking for? Browse other questions tagged .