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(*): fix back button path for support pathname-relative paths #447

Merged
merged 2 commits into from
May 19, 2017

Conversation

stepancar
Copy link
Member

Hello @sapegin.
Minor fix for situation when you docs published not in root of domain.
for example when your docs build at https://alfa-laboratory.github.io/arui-feather/arui-demo/styleguide url for isolated component is https://alfa-laboratory.github.io/arui-feather/arui-demo/styleguide/#!/Amount
"Back" button navigates to https://alfa-laboratory.github.io/

@@ -88,7 +88,7 @@ export function ReactComponentRenderer({
<div className={classes.pathLine}>{pathLine}</div>
<div className={classes.isolatedLink}>
{isolated
? <Link href="/">← Back</Link>
? <Link href="#">← Back</Link>
Copy link
Member

Choose a reason for hiding this comment

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

Will something like an empty string work to remove the # from the URL?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, fixed

@sapegin
Copy link
Member

sapegin commented May 17, 2017

Thanks for the pull request!

@stepancar
Copy link
Member Author

@sapegin , updated

@sapegin sapegin merged commit 542da19 into styleguidist:master May 19, 2017
@sapegin
Copy link
Member

sapegin commented May 19, 2017

Cool, thanks!

sapegin added a commit that referenced this pull request May 30, 2017
## New feature

**Section isolated mode:** now you can open sections in isolated mode too.

(#394 by @Knorcedger)

## Bug fixes

* Fix React CodeMirror warning when opening code editor
* Fix Create React App 1.0 support (#458)
* Fix back button path for support pathname-relative paths (#447 by @stepancar)
* Promise polyfill for IE11 because require.ensure requires it in webpack 2
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

2 participants