@@ -1,6 +1,6 @@
{
"name": "@shaun/alpinejs-router",
- "version": "1.3.0",
+ "version": "1.3.1",
"description": "Easy to use and flexible router for Alpine.js",
"type": "module",
"main": "dist/module.cjs.js",
@@ -39,6 +39,8 @@ export class RouterURL {
}
static resolveTemplatePath (pathname, tpl) {
+ if (!tpl) return tpl
+
if (tpl.startsWith('/')) {
return tpl