linkedpipes / dcat-ap-forms

Forms application for filling out DCAT-AP v2.0.0 compatible metadata
MIT License
2 stars 2 forks source link

Add returnUrl parameter #164

Closed skodapetr closed 3 years ago

skodapetr commented 3 years ago

We need to add returnUrl to the URL query part, if the parameter is set then instead of exporting the data using download the data are send using POST method to URL specified by returnUrl.

This issue should implement requirement described in https://github.com/opendata-mvcr/lkod/issues/3

jakubklimek commented 3 years ago

@skodapetr OK, it seems to be POSTing. Shouldn't the browser then follow the returned redirect?

Specifically, the format of the POST seems the same as the expected POST input. Naturally, I tried setting returnUrl to the URL of the form itself - I would expect to end up in a POST pre-filled (#163 ) form after POSTing.

skodapetr commented 3 years ago

Well it won't work, as the reponse of the POST contain the data the follow-up redirect does not. So you should get a clear form instead.