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

Snapshot notice link not navigating as expected #4194 #4199

Merged
merged 3 commits into from
Sep 14, 2021

Conversation

nikhilmandlik
Copy link
Contributor

@nikhilmandlik nikhilmandlik commented Sep 9, 2021

Resolves:

resolves: #4194

All Submissions:

Author Checklist

  • Changes address original issue?
  • Unit tests included and/or updated with changes?
  • Command line build passes?
  • Has this been smoke tested?
  • Testing instructions included in associated issue?

@@ -108,7 +108,8 @@ export default class Snapshot {
}

return () => {
window.location.href = window.location.origin + url;
const path = window.location.href.split('#');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

window.location.origin gives only main domain address eg: 'https://XYZ....nasa.gov/' and not full path of domain eg "https://XYZ.....nasa.gov/path_name/"

Copy link
Contributor

@shefalijoshi shefalijoshi left a comment

Choose a reason for hiding this comment

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

Feels like this was fixed before? LGTM!

@nikhilmandlik
Copy link
Contributor Author

Feels like this was fixed before? LGTM!

yup it was and there was one missing edge case

@shefalijoshi shefalijoshi merged commit 93d967c into master Sep 14, 2021
@shefalijoshi shefalijoshi deleted the notebook-cross-domain-links branch September 14, 2021 22:17
@nikhilmandlik nikhilmandlik restored the notebook-cross-domain-links branch January 7, 2022 00:02
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.

Snapshot notice link not navigating as expected
2 participants