What I am trying to do is to enable the dialog with the metadata information when I drag and drop a file in a document library. The same dialog that appears when you upload a file through the +New Document ribbon.
I know so far that
_spPageContextInfo.siteServerRelativeUrl gets you the relative URL of the site; also
ctx.HttpRoot retrieves the relative URL of the site. But I need this relative URL + the Document Library in which I am positioned.
Suppose that I have the following site:
I need to get the relative URL of: