'View details link invalid after private wordpress plugin update

I have a private wordpress plugin, that we are hosting on github

The Plugin has an update function that is working and displays the update message correctly on the plugins page if there is a new version.

When it first shows that there is an update , there are two “View details” links that point to the current plugin

After you upgrade the plugin and get the green check box, there is still the original view details link and the version has been updated. This link is no longer valid because it points to the old version of the plugin which has been deleted.

enter image description here

enter image description here

For example the View details link is

https://mywordpress.com/wp-admin/plugin-install.php?tab=plugin-information&plugin=myplugin-woocommerce-dev-1.1.29/myplugin-init.php&TB_iframe=true&width=600&height=550

The new version is 1.1.31 ,

After the update , you get the updated with the green check box bar, but above it still has the view link to 1.1.29 which is now gone

What is the best practice for this? Should i keep old versions of the plugin around?

I do not specifically delete the old directory, so i assume that is some kind of wordpress core functionality

Thanks for any help / insight



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source