The source project of this merge request has been removed.
Exempt: Trivial - WDFN-697 try replace filter to encode slash
Before making a pull request
-
Put the appropriate EXEMPT flag if needed in the MR title (see https://practices.wma.chs.usgs.gov/practice/peer_code_review/) -
Run all linters (make lint) -
Run all tests (make test) -
Update the changelog appropriately -
If making a release, update code.json, versionNumber and metadataLastUpdated.
Description WDFN-697 try replace filter to encode slash
It looks like the Jinja2 filter 'urlencode' will not encode slashes '/' which seems to mess up the Twitter share. The documentation suggests using the 'replace' filter to encode the slashes, so giving that a try. Also trying to explicitly set the image size for Facebook as the documentation indicates that if the size is not set, it will not show the image in the post until Facebook 'processes' the image.
After making a pull request
-
If appropriate, put the link to the PR in the JIRA ticket -
Assign someone to review unless the change is trivial
Edited by Briggs, Aaron Shane