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:(isolation mode issue) issue #1492 #1509

Merged
merged 4 commits into from
Jan 7, 2020
Merged

Fix:(isolation mode issue) issue #1492 #1509

merged 4 commits into from
Jan 7, 2020

Conversation

piyushkadam5
Copy link
Contributor

issue link: #1492

This issue occurred because of the fix that have been made in version 10.0.1 for the issue: #1454

Hashed Url example: the "#button" in the url is an example of Hashed Url...it gets appended after clicking the Button component in the side-Navbar...
Screenshot 2020-01-03 at 6 14 45 PM

After the issue #1454 was resolved...it was taking the hashed url token in the isolated page(which opens after clicking the fullscreen icon) url as you can see below

after clicking the fullscreen icon we got results like this!
pageNotFound(1)

so this was the issue which is resolved by doing a simple check i.e. we are verifying if the currentHash that we are getting in the 'buildIsolatedOrNoChromeFragment()' function is a hashedUrl("#button") or a Section-Url("#/Components")...

we just checked the first character after the '#' in the currentHash string if it matches the hashedUrlpattern then we are neglecting the extra currentHashPath...

now as you can see below we removed the "/button" from the url...it is working fine..
pageFound

we have written a test case for that as you can check...!
and also the issue mentioned in #1454 is also working fine...

@codecov
Copy link

codecov bot commented Jan 3, 2020

Codecov Report

Merging #1509 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted Files Coverage Δ
src/client/utils/getUrl.ts 92.68% <100%> (+1.01%) ⬆️
src/client/rsg-components/Props/renderDefault.tsx 100% <0%> (ø) ⬆️

Copy link
Member

@sapegin sapegin left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

src/client/utils/getUrl.ts Outdated Show resolved Hide resolved
changes regarding the isolated page view url...
@sapegin sapegin merged commit e08ef88 into styleguidist:master Jan 7, 2020
@elevatebart
Copy link
Collaborator

Hello @sapegin,
I believe this pull request was not well named and did not trigger the minor release that it should have.

fix: instead of Fix:

@styleguidist-bot
Copy link
Collaborator

🎉 This PR is included in version 10.4.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants