Get URL in redirect page

I’m sorry, but it doesn’t make sense.

Browsers automatically follow redirects and there’s no way even some javascript code could be able to intercept an intermediate redirect and capture some elements in the url.
In short, there’s no way your actual application works this way, hence it’s not possible with Gatling either.

Your token must actually be somewhere else (cookie, meta tag in the landing page, etc).

Ok thanks for you answer.

(I wanted to edit the post but I could not so I deleted it in order to recreate it but finally you just answered my question, thanks)