While this code:
$localURL = SpecialPage::getTitleFor( 'UrlShortener' )->getLocalURL( [ 'url' => $fullURL ] );
works for the full URL:
It appears to not be working using the short domain:
Note that this will not produce a url directly, it merely presets the form so that users don't have to copy things from the address bar manually.