We are using O365/Sharepoint Online 2013.
I was wondering if there is a way to use links in Global Navigation Bar (Not the suite bar) that would reference the site the user is on at the moment. Why do I ask this? Because I tried to make a link to new document library creation and it's working perfectly but as there are subsites that should have the link too, they have the wrong URL in the link.
To clear it up a bit:
We have document centers and they have subsites. Subsites are inheriting the Global Navigation from the main document center sites. I found this link that can be used as a "shortcut" link/button to create a document library:
https://example.sharepoint.com/site/_layouts/15/new.aspx?ListTemplate=101&
But the problem is that in the subsites the URL is the same so it's creating the new library to the main document center site. So I was wondering if there is some "token" or parameter or another method to use to get the URL to reference the current site? I found tokens {site} and ~site but they do not work in the Global Navigation. I tried but it just gives me an error about not starting the URL with http://, https://, /, etc.
I also tried to use
https://example.sharepoint.com/~site/_layouts/15/new.aspx?ListTemplate=101&
and
https://example.sharepoint.com/{site}/_layouts/15/new.aspx?ListTemplate=101&
but it didn't work as the link just read like that and the site tokens didn't transform into the current site.
Thank you a lot for any information on this matter! :)