Skip to content

Commit

Permalink
Merge pull request #63 from tomatophp/develop
Browse files Browse the repository at this point in the history
fix search redirect
  • Loading branch information
3x1io committed Apr 2, 2024
2 parents e3a50f1 + 88b8159 commit 2eb673a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
15 changes: 11 additions & 4 deletions Modules/CircleDocs/resources/assets/js/SearchDocs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Modules/CircleDocs/resources/views/layouts/doc.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,6 @@
<x-slot:title>
{{__('Docs Search')}}
</x-slot:title>
<SearchDocs url="{{ url('/') }}" id="{{$model->id}}" placeholder="{{__('Search By Any Thing On Docs')}}" />
<SearchDocs url="{{ url('/') }}" id="{{$model->id}}" username="{{$model->account->username}}" package="{{$model->package}}" placeholder="{{__('Search By Any Thing On Docs')}}" />
</x-splade-modal>
</x-circle-xo-profile-layout>
2 changes: 1 addition & 1 deletion Modules/CircleDocs/resources/views/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@
<x-slot:title>
{{__('Docs Search')}}
</x-slot:title>
<SearchDocs url="{{ url('/') }}" id="{{$doc->id}}" placeholder="{{__('Search By Any Thing On Docs')}}" />
<SearchDocs url="{{ url('/') }}" id="{{$doc->id}}" username="{{$account->username}}" package="{{$doc->package}}" placeholder="{{__('Search By Any Thing On Docs')}}" />
</x-splade-modal>
</x-circle-xo-public-profile-layout>

Expand Down
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2eb673a

Please sign in to comment.