I just created releases for my NFQL software on github.
Here is the releases page: https://github.com/vbajpai/nfql/releases
For the latest release, v0.7. If I click on the tarball button, it saves a nfql-0.7.tar.gz. This is great and exactly how I want my release archives to be named.

However, I need the download link of the tarball itself. So that I can create a MacPorts/Homebrew file for the tarball. If I look at the download link, it is:
a) https://github.com/vbajpai/nfql/archive/v0.7.tar.gz or
b) https://codeload.github.com/vbajpai/nfql/tar.gz/v0.7
now if I use curl/wget it saves the tarball as v0.7.tar.gz. I know I can specify a filename while downloading using curl/wget. I want to know is there is a reliable github URL I can use to fetch my tarball as nfql-0.7.tar.gz.
PS: What is github doing there anyway? How is the filename altered by the browsers when I directly click the source code link?