Revision 28e270f9 src/gr/grnet/pithos/web/client/VersionsList.java

b/src/gr/grnet/pithos/web/client/VersionsList.java
116 116
			downloadHtml.addClickHandler(new ClickHandler() {
117 117
				@Override
118 118
				public void onClick(ClickEvent event) {
119
					String fileUrl = app.getApiPath() + file.getOwnerID() + file.getUri() + "?version=" + v.getVersion();
119
					String fileUrl = Pithos.getStorageAPIURL() + file.getOwnerID() + file.getUri() + "?version=" + v.getVersion();
120 120
					Window.open(fileUrl, "_BLANK", "");
121 121
				}
122 122
			});
......
132 132

  
133 133
	void restoreVersion(int version) {
134 134
		String path = file.getUri() + "?update=";
135
		PostRequest restoreVersion = new PostRequest(app.getApiPath(), file.getOwnerID(), path) {
135
		PostRequest restoreVersion = new PostRequest(Pithos.getStorageAPIURL(), file.getOwnerID(), path) {
136 136
			
137 137
			@Override
138 138
			public void onSuccess(Resource result) {

Also available in: Unified diff