Take the 2-minute tour ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

If I request from the /questions route (for example,) I get a list of questions and some relative route data. What I don't get is a nice, neat, full URL to the question on the site:

site_url: http://stackoverflow.com/questions/3159491/problems-with-javascript-and-hcommandlink

I can imagine lots of cases where you'd want to be able to link a question or answer represented in an app to the site where it was posted. I can build the URL above from the return data fairly easily, and I'm fairly certain the routes on the SE sites won't change, however...

It would be nice to get the site URL directly from the API. In the unlikely event of a change to the SE routing, the API could report the change seamlessly and apps just continue to link to the sites without modification.

share|improve this question
2  
+1 One of my apps does this manually right now. –  Nathan Osman Jul 1 '10 at 18:26
    
I don't know Dave, i am sure that the url authority is not being stored in the SO db and that the urls are being rendered by concatenation. This seems to me to be the most robust way to deliver this information. –  Sky Sanders Jul 22 '10 at 19:01
add comment

You must log in to answer this question.

Browse other questions tagged .