From 88b8159ea51e5063ef3442cb74c060ef78979eb0 Mon Sep 17 00:00:00 2001 From: Fady Mondy Date: Tue, 2 Apr 2024 22:35:47 +0200 Subject: [PATCH] fix search redirect --- .../CircleDocs/resources/assets/js/SearchDocs.vue | 15 +++++++++++---- .../resources/views/layouts/doc.blade.php | 2 +- Modules/CircleDocs/resources/views/show.blade.php | 2 +- composer.lock | 12 ++++++------ 4 files changed, 19 insertions(+), 12 deletions(-) diff --git a/Modules/CircleDocs/resources/assets/js/SearchDocs.vue b/Modules/CircleDocs/resources/assets/js/SearchDocs.vue index b2bcb4d..088c3fd 100644 --- a/Modules/CircleDocs/resources/assets/js/SearchDocs.vue +++ b/Modules/CircleDocs/resources/assets/js/SearchDocs.vue @@ -80,6 +80,14 @@ export default { type: Number, required: true }, + username: { + type: String, + required: true + }, + package: { + type: String, + required: true + }, url: { type: String, required: true @@ -98,10 +106,9 @@ export default { ).searchClient }; }, - methods:{ - goToProfile(item){ - console.log(item); - this.$splade.visit(this.$props.url +"/"+ item.username) + methods: { + goToProfile(item) { + this.$splade.visit(this.$props.url + "/" + this.$props.username + "/docs/" + this.$props.package + "/" + item.slug) } } } diff --git a/Modules/CircleDocs/resources/views/layouts/doc.blade.php b/Modules/CircleDocs/resources/views/layouts/doc.blade.php index 48bde23..b4dd03b 100644 --- a/Modules/CircleDocs/resources/views/layouts/doc.blade.php +++ b/Modules/CircleDocs/resources/views/layouts/doc.blade.php @@ -155,6 +155,6 @@ {{__('Docs Search')}} - + diff --git a/Modules/CircleDocs/resources/views/show.blade.php b/Modules/CircleDocs/resources/views/show.blade.php index af18ea1..128df81 100644 --- a/Modules/CircleDocs/resources/views/show.blade.php +++ b/Modules/CircleDocs/resources/views/show.blade.php @@ -260,7 +260,7 @@ {{__('Docs Search')}} - + diff --git a/composer.lock b/composer.lock index b7645d1..bf62e61 100644 --- a/composer.lock +++ b/composer.lock @@ -12078,16 +12078,16 @@ }, { "name": "tomatophp/circle-docs-module", - "version": "v1.0.1", + "version": "v1.0.2", "source": { "type": "git", "url": "https://github.com/tomatophp/circle-docs-module.git", - "reference": "a62e527369db92439727d524fb0d951f0bcfcd4d" + "reference": "ba5f7d7809faee7cb242683764ac451fc279b3f3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/tomatophp/circle-docs-module/zipball/a62e527369db92439727d524fb0d951f0bcfcd4d", - "reference": "a62e527369db92439727d524fb0d951f0bcfcd4d", + "url": "https://api.github.com/repos/tomatophp/circle-docs-module/zipball/ba5f7d7809faee7cb242683764ac451fc279b3f3", + "reference": "ba5f7d7809faee7cb242683764ac451fc279b3f3", "shasum": "" }, "require": { @@ -12136,7 +12136,7 @@ ], "support": { "issues": "https://github.com/tomatophp/circle-docs-module/issues", - "source": "https://github.com/tomatophp/circle-docs-module/tree/v1.0.1" + "source": "https://github.com/tomatophp/circle-docs-module/tree/v1.0.2" }, "funding": [ { @@ -12144,7 +12144,7 @@ "type": "github" } ], - "time": "2024-04-02T20:08:27+00:00" + "time": "2024-04-02T20:34:33+00:00" }, { "name": "tomatophp/circle-invoices-module",