Right click on the link and hit ‘Save link as’ then tell it where to put the file on your computer. (or save target as).
Some windows machines sometimes add characters to the file extension. Make sure the file only has .gpx at the end of the filename. If there is anything else, rename the file so that .gpx is the end of the filename. Basecamp (or other) can then identify and open the file.