How to Get the Name of the Current Folder from the URL December 2, 2011October 5, 2012 / Jim McMullen / Leave a comment The Situation: You need to get the name of the current page request folder from the URL. A Solution: Use this method: