Prefilled contact form with subject and body queryParams #4161
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a sub-route
/about/instance/contact
in order to prefill the contact form with a subject and a body queryParams.Also fixes minor CSS issues for input displaying in the contact-form.
Related issues
closes #4160
Has this been tested?
Click on the contact form button in
/about/instance
, it should open the modal with/about/instance/contact
When you close the modal the router should redirect to
/about/instance
When you click on the modal body overlay, it should keeps the input value history when re-open the modal
Access to
/about/instance/contact?subject=My Subject&body=My Body multiline%0Aline 1%0Aline 2
It should display the contact form in the modal with pre-filled inputs as shown in the screenshots
When you click on the modal body overlay, it should keeps the input value history when re-open the modal when back browsing history
When you close the modal the router should redirect to
/about/instance
/about/instance/contact
it should display a 404 errorScreenshots
Minor CSS fixes