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

Fix URLs to Family Tree #100

Closed
justincy opened this issue Oct 27, 2016 · 1 comment
Closed

Fix URLs to Family Tree #100

justincy opened this issue Oct 27, 2016 · 1 comment

Comments

@justincy
Copy link
Member

FamilySearch recently changed all URLs in their tree so all URLs from opportunities that point to the tree are now broken.

@justincy
Copy link
Member Author

justincy commented Oct 28, 2016

Command to update all person detail URLs:

find lang/*/lib -type f -exec sed -i 's|https://familysearch\.org/tree/#view=ancestor&person={{\(\w\+\)}}|https://familysearch.org/tree/person/{{\1}}/details|g' {} +

Record hint URLs:

find lang/*/lib -type f -exec sed -i 's|https://familysearch\.org/tree/#view=allMatchingRecords&person={{\(\w\+\)}}|https://familysearch.org/tree/person/{{\1}}/research-help|g' {} +

Relationship URLs:

find lang/*/lib -type f -exec sed -i 's|https://familysearch\.org/tree/#view=coupleRelationship&relationshipId={{\(\w\+\)}}|https://familysearch.org/tree/relationship/{{\1}}/couple|g' {} +

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

No branches or pull requests

1 participant