I am trying to write an image shortcode that checks if it’s an AMP page or not. What I was thinking was to get the .Permalink of the current page, split it and check for an amp in that slice, but .Parmalink doesn’t work in the shortcode, is there any other way to do this?