How to get shortLink from url?

Hello! I need to get shortLink before initializing TrelloPowerUp. My application in the iframe, so I can’t get url through window.parent.location. Tell me, is it possible to do this in any way?