Returns the page path

This method will return the requested url.
496824
public function getPagePath() {
        $core = $this->getLoops()->getService("web_core");
        $page = $core->page;
        $pagepath = $page === $this ? "" : WebCore::getPagePathFromClassname($page, $core->page_parameter);
        return implode("/", $pagepath ? array_merge([$pagepath], $core->parameter) : $core->parameter);
    }
562451
def url(self):
        
        path = None
        nodes = self.parents()
        while not nodes.empty():
            path = urljoin(path, nodes.get().path())
        return path
616007
public String getResourcePath() {
        final StringBuilder sb = new StringBuilder();
        for (final String r : resource)
            sb.append(r + '/');
        return sb.substring(0, Math.max(0, sb.length() - 1));
    }
1006091
public String getPath()
    {
        final StringBuilder path = new StringBuilder();
        if (getPrevious() != null) {
            path.append(getPrevious().getPath());
        }
        return path.toString();
    }
235798
@Override
    public String path() {
        try {
            return new URI(request.uri()).getRawPath();
        } catch (URISyntaxException e) { //NOSONAR
            // Should never be the case.
            return uri();
        }
    }
560510
def get_resource_url(self):
        

        name = self.__class__.resource_name
        url = self.__class__.rest_base_url()

        return "%s/%s" % (url, name)
1104965
def get_path(url):
        

        if url not in URLHelper.__cache:
            URLHelper.__cache[url] = urlparse(url)

        return URLHelper.__cache[url].path
780610
def _get_url(self, session, uri):
        
        url = session.url
        if uri:
            slash = '' if uri.startswith('/') else '/'
            url = "%s%s%s" % (session.url, slash, uri)
        return url
1360954
def get_current_url(self):
		'''
		

		'''
		res = self.Page_getNavigationHistory()
		assert 'result' in res
		assert 'currentIndex' in res['result']
		assert 'entries' in res['result']

		return res['result']['entries'][res['result']['currentIndex']]['url']
949804
private String getRequestPath(HttpServletRequest request) {
		String url = request.getServletPath();

		if (request.getPathInfo() != null) {
			url += request.getPathInfo();
		}

		return url;
	}
1365227
def path(self, which=None):
        
        if which in ('download_html',):
            return '{0}/{1}'.format(
                super(ArfReport, self).path(which='self'),
                which
            )
        return super(ArfReport, self).path(which)
483881
public String getUrl() {
		ContentAccess content = getContentAccess();

		String mode = DisplayMode.PROMPT_TO_SAVE.equals(getDisplayMode()) ? "attach" : "inline";

		// Check for a "static" resource
		if (content instanceof InternalResource) {
			String url = ((InternalResource) content).getTargetUrl();
			// This magic parameter is a work-around to the loading indicator becoming
			// "stuck" in certain browsers.
			// It is also used by the static resource handler to set the correct headers
			url = url + "&" + URL_CONTENT_MODE_PARAMETER_KEY + "=" + mode;
			return url;
		}

		Environment env = getEnvironment();
		Map<String, String> parameters = env.getHiddenParameters();
		parameters.put(Environment.TARGET_ID, getTargetId());

		if (Util.empty(getCacheKey())) {
			// Add some randomness to the URL to prevent caching
			String random = WebUtilities.generateRandom();
			parameters.put(Environment.UNIQUE_RANDOM_PARAM, random);
		} else {
			// Remove step counter as not required for cached content
			parameters.remove(Environment.STEP_VARIABLE);
			parameters.remove(Environment.SESSION_TOKEN_VARIABLE);
			// Add the cache key
			parameters.put(Environment.CONTENT_CACHE_KEY, getCacheKey());
		}

		// This magic parameter is a work-around to the loading indicator becoming
		// "stuck" in certain browsers. It is only read by the theme.
		parameters.put(URL_CONTENT_MODE_PARAMETER_KEY, mode);

		// The targetable path needs to be configured for the portal environment.
		String url = env.getWServletPath();

		// Note the last parameter. In javascript we don't want to encode "&".
		return WebUtilities.getPath(url, parameters, true);
	}
251334
public String getRootPath(Page page) {
    if (page == null) {
      return null;
    }
    return getRootPath(page.adaptTo(Resource.class));
  }
696431
public String getURL()
  {
    int port = getPort();

    return (getScheme() + "://" + getHost() + 
            (port == 80 ? "" : ":" + getPort()) +
            getPath() +
            (_query == null ? "" : "?" + _query));
  }
290051
protected function getBlogListPagePath()
    {
        $path = str_replace('.', '/', $this->viewsData['postsListView']);

        if (ends_with($path, 'index')) {
            return rtrim($path, '/index');
        }

        return $path;
    }
1106500
def get_path(self, url):
        
        cache_path = self._url_to_path(url)
        if os.path.exists(cache_path):
            return cache_path

        return None
513606
function() {
    var path = document.location.pathname;
    var parts = path.split(/\//);
    $.each(DOCUMENTATION_OPTIONS.URL_ROOT.split(/\//), function() {
      if (this == '..')
        parts.pop();
    });
    var url = parts.join('/');
    return path.substring(url.lastIndexOf('/') + 1, path.length - 1);
  }