Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parent letter: Absolute URLs #34090

Merged
merged 4 commits into from Apr 7, 2020
Merged

Parent letter: Absolute URLs #34090

merged 4 commits into from Apr 7, 2020

Conversation

islemaster
Copy link
Contributor

Ensure we use environment-appropriate absolute URLs for all links in the parent letter. Fixes this issue caught by Erin.

Testing story

Manual testing on local machine.

Reviewer Checklist:

  • Tests provide adequate coverage
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

* method above to generate absolute URLs.
* @param {string} origin
*/
export function setPegasusOrigin(origin) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: I'm using "origin" here after the Location.origin property which is the closest to what we actually mean: A scheme (http/https), a hostname (studio.code.org) and, if needed, a port number.

<a href={PRIVACY_PLEDGE_URL}>Student Privacy Pledge</a> and their{' '}
<a href={pegasus('/privacy')}>privacy practices</a> have received{' '}
<a href={PRIVACY_PLEDGE_URL}>Student Privacy Pledge</a> and their
privacy practices have received{' '}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops! This change, removing one of the privacy links, was supposed to be in the last PR but I forgot to push it. Removed with Amanda's approval because it's basically redundant with other links in the privacy paragraph.

@islemaster islemaster merged commit 76e33ca into staging Apr 7, 2020
@islemaster islemaster deleted the parent-letter-urls branch April 7, 2020 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants