Skip to content

Commit

Permalink
DD-526 create url for custom terms (#103)
Browse files Browse the repository at this point in the history
* updated Datasets.java, DatasetPage.java and dataset.xhtml

* refactored getCustomTermsTab function, added logic to switch to all dataset tabs

* allow guestaccess and return 404 if no custom license

* changed custom url response to 303 see other
  • Loading branch information
mderuijter authored Jul 14, 2021
1 parent c2e7375 commit fd21968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/edu/harvard/iq/dataverse/api/Datasets.java
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,7 @@ public Response getCustomTermsTab(@PathParam("id") String id, @PathParam("versio
} catch (WrappedResponse wrappedResponse) {
return wrappedResponse.getResponse();
}
return Response.temporaryRedirect(URI.create(systemConfig.getDataverseSiteUrl() + "/dataset.xhtml?persistentId=" + persistentId + "&version=" + versionId + "&selectTab=termsTab")).build();
return Response.seeOther(URI.create(systemConfig.getDataverseSiteUrl() + "/dataset.xhtml?persistentId=" + persistentId + "&version=" + versionId + "&selectTab=termsTab")).build();
}


Expand Down

0 comments on commit fd21968

Please sign in to comment.