Closed polovi closed 7 years ago
routes.add({ name: 'home', pattern: '/:id([a-z0-9]{24})?', page: 'index', })
If url param id isnt set route generate url with ? like /home? It needs to return ? only if toQuerystring return some query
?
/home?
getHref (params = {}) { const = qString = toQuerystring(params) return `${this.page}${qString !== '' ? `?${qString}` : ''}` //return `${this.page}?${toQuerystring(params)}` }
Fixed in version 1.1.0!
If url param id isnt set route generate url with
?
like/home?
It needs to return?
only if toQuerystring return some query