@viewfly/router 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -258,7 +258,7 @@ function Link(props) {
258
258
  const Tag = props.tag || 'a';
259
259
  const attrs = Object.assign({}, props, Object.assign({ onClick: navigate }, props));
260
260
  if (Tag === 'a') {
261
- attrs.href = navigator.join(props.to, router, props.queryParams);
261
+ attrs.href = navigator.join(props.to, router, props.queryParams, props.fragment);
262
262
  }
263
263
  if (isActive() && props.active) {
264
264
  attrs.class = [attrs.class, props.active];
package/bundles/index.js CHANGED
@@ -260,7 +260,7 @@ function Link(props) {
260
260
  const Tag = props.tag || 'a';
261
261
  const attrs = Object.assign({}, props, Object.assign({ onClick: navigate }, props));
262
262
  if (Tag === 'a') {
263
- attrs.href = navigator.join(props.to, router, props.queryParams);
263
+ attrs.href = navigator.join(props.to, router, props.queryParams, props.fragment);
264
264
  }
265
265
  if (isActive() && props.active) {
266
266
  attrs.class = [attrs.class, props.active];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viewfly/router",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "A routing library based on the Viewfly framework that can be run in the browser or Nodejs background.",
5
5
  "main": "./bundles/index.js",
6
6
  "module": "./bundles/index.esm.js",