1
 Follower
17
 Likes

Add GetBaseURL() to the URL built-in functions

Builtin & User functions
On our radar
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.


Created on 6 Nov 2014
Comments (10)
I think that already have it with GetBookmarkableURL()
7 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()

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

Thank you anyway.
10 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:))

I'll add a vote.  Hector's solution worked for me in the interim.

This Substr don't work if you are using Chrome (version: 64.0.3282.137) with Android (version: 8.0.0). But the same test works on Chrome with iOS. 

Substr(GetBookmarkableURL(),0, Index(GetBookmarkableURL(), GetPageName(),startIndex:,searchFromEnd:,ignoreCase:))
views
1370
Followers
1