It looks like I was able to get the comment link to work even when I removed the title segment from the urls. So I changed
https://space.stackexchange.com/questions/54293/is-there-any-demonstrated-or-even-proposed-technology-that-can-sterilize-a-space?noredirect=1#comment177960_54293
https://astronomy.stackexchange.com/questions/41023/why-cant-we-build-a-huge-stationary-optical-telescope-inside-a-depression-simil/41027?noredirect=1#comment83925_41027
to:
https://space.stackexchange.com/q/54293?noredirect=1#comment177960_54293
https://astronomy.stackexchange.com/q/41023?noredirect=1#comment83925_41027
Also note I changed /questions/
to /q/
to shorten the urls further.
I guess that removing the noredirect=1 part will cause the url to redirect to a duplicate post if the question has been closed as a duplicate and the the user is not logged in/anonymous (or possibly below a certain reputation?), which could result in an undesired effect.