Created
January 25, 2012 14:44
-
-
Save vman/1676586 to your computer and use it in GitHub Desktop.
urlcoffee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Check whether the current web is the root web and if its not, append a "/" to the end. | |
currentUrl = _spPageContextInfo.webServerRelativeUrl | |
currentFormattedUrl = if currentUrl is "/" then currentUrl else currentUrl + "/" | |
alert currentFormattedUrl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment