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).