Skip to content

Properly handle anchor links local within a file. Fix #142 - #143

Merged
QingWei-Li merged 3 commits into
docsifyjs:masterfrom
bojand:master
Apr 1, 2017
Merged

QingWei-Li merged 3 commits into
docsifyjs:masterfrom
bojand:master

Conversation

@bojand

@bojand bojand commented Mar 30, 2017

Copy link
Copy Markdown
Contributor

in toURL test for anchor links and if so prepend the currentPath to t…he generated path. fixes #142.

Please makes sure these boxes are checked before submitting your PR, thank you!

  • Make sure you are merging your commits to master branch.
  • Add some descriptions and refer relative issues for you PR.
  • DO NOT include files inside lib directory.

Comment thread src/core/route/hash.js Outdated
* @param {object} qs query params
*/
export function toURL (path, params) {
const inline = path[0] === '#';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please remove the semi.

@bojand

bojand commented Mar 30, 2017 •

Copy link
Copy Markdown
Contributor Author

fixed. sorry, i actually don't use semi's myself, but got used to looking at the built version which had semis, and didn't realize the actual code here omits them.

@bojand

bojand commented Mar 31, 2017

Copy link
Copy Markdown
Contributor Author

I'll have to properly redo this. I didn't realize the code is a bit different than the built / bundled app.

@bojand bojand closed this Mar 31, 2017
@bojand bojand reopened this Mar 31, 2017
@QingWei-Li
QingWei-Li merged commit aa6d2af into docsifyjs:master Apr 1, 2017
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.

2 participants