Add GetBaseURL() to the URL built-in functions

By David Zangger on 6 Nov 2014
It would be very helpful to have a GetBaseURL function that would provide the current URL to the current application.  This is extrememly handy when you want to provide a link to the application in an email.


I think that already have it with GetBookmarkableURL()
David Zangger7 Nov 2014
Thanks Alberto.  But I don't want the page details.  

For example.  If my site is: http://server/app/page.aspx, I only want http://server/app returned regardless of where I am in the application.  If I'm at http://server/app/somewhere/home.aspx, I still only want http://server/app.
You can get the page URL and get only the path with the use of some buildIn functions
Substr()

Index()

David Zangger10 Nov 2014
Which is why it would be easier to have a simple function. 

Thank you anyway.
David Zangger10 Nov 2014
Thanks Alberto.  But I don't want the page details.  

For example.  If my site is: http://server/app/page.aspx, I only want http://server/app returned regardless of where I am in the application.  If I'm at http://server/app/somewhere/home.aspx, I still only want http://server/app.
If someone still need it, heres my solution:

Substr(GetBookmarkableURL(),0, Index(GetBookmarkableURL(), GetPageName(),startIndex:,searchFromEnd:,ignoreCase:))
If someone still need it, heres my solution:

Substr(GetBookmarkableURL(),0, Index(GetBookmarkableURL(), GetPageName(),startIndex:,searchFromEnd:,ignoreCase:))
If someone still need it, heres my solution:

Substr(GetBookmarkableURL(),0, Index(GetBookmarkableURL(), GetPageName(),startIndex:,searchFromEnd:,ignoreCase:))