0

How can I take the full url without affecting the "&" if i redirect to this page: https://XXX.XXX.force.com?pay=BXXXB&PA83747474&TOKEN=23444848 for example. I catch the url using:

String url = ApexPages.currentPage().getParameters().get('pay');

but if i print url only got: BXXXB

i cannot be able to get the full url even with the &.

I would like to get the full url : "BXXXB&PA83747474&TOKEN=23444848"

1 Answer 1

0

Try ApexPages.currentPage().getUrl()

Relevant: PageReference class

You must log in to answer this question.

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