Automatic marketplace sign in redirection

I’m trying to include in my web page a link copied from (Manage > Installed Apps) to allow members of my account to install/uninstall the app. The link works like a charm if the user is logged in but I get an “Application Not Found” page when the user is not

I’d like my users to be redirected to the marketplace login page when they are not logged in, as it happens with other (no marketplace) links

would it be possible?

Thanks in advance