@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.
- package/bundles/index.esm.js +1 -1
- package/bundles/index.js +1 -1
- package/package.json +1 -1
package/bundles/index.esm.js
CHANGED
|
@@ -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