private ProjectData openProjectView(URL url) throws IOException {

		GhidraURLConnection c = (GhidraURLConnection) url.openConnection();
		c.setAllowUserInteraction(true);
		c.setReadOnly(true);

		StatusCode responseCode = c.getStatusCode();
		if (responseCode == StatusCode.NOT_FOUND) {
			throw new IOException(
				"Project/repository not found: " + GhidraURL.getDisplayString(url));
		}
		if (responseCode == StatusCode.UNAUTHORIZED) {
			// assume already informed
			return null;
		}

		DefaultProjectData veiwedProjectData = (DefaultProjectData) c.getProjectData();
		if (veiwedProjectData == null) {
			throw new IOException(
				"Failed to view specified project/repository: " + GhidraURL.getDisplayString(url));
		}
		url = veiwedProjectData.getProjectLocator().getURL(); // transform to repository root URL

		otherViewsMap.put(url, veiwedProjectData);
		return veiwedProjectData;
	}
Get the project URL for this project.
Ghidra/Framework/Project/src/main/java/ghidra/framework/project/DefaultProject.java