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

router link now sets a hashed path to href when using hash-mode. (fix #780) #809

Merged
merged 1 commit into from Oct 24, 2016
Merged

router link now sets a hashed path to href when using hash-mode. (fix #780) #809

merged 1 commit into from Oct 24, 2016

Conversation

LinusBorg
Copy link
Member

@LinusBorg LinusBorg commented Oct 20, 2016

Problem

When suing hash mode, router-link would still set a path without a hash to the hrefattribute (see #780)

Solution

  • added function that constructs href path depeding on router mode. (link.js)
  • added /examples for hash mode (there were none)
  • added /e2e tests for new example.

@LinusBorg LinusBorg added the 2.x label Oct 20, 2016
@LinusBorg LinusBorg changed the title router link now sets a hash path to href when using hash-mode. (fix #780) router link now sets a hashed path to href when using hash-mode. (fix #780) Oct 22, 2016
@fnlctrl
Copy link
Member

fnlctrl commented Oct 24, 2016

ping @posva

Copy link
Member

@posva posva left a comment

Choose a reason for hiding this comment

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

@fnlctrl Looks good!

@fnlctrl fnlctrl merged commit cd2f0df into vuejs:dev Oct 24, 2016
@LinusBorg LinusBorg deleted the href_with_hash_(fix_#780) branch February 14, 2017 16:18
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

3 participants