Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate openResult method to SearchResult component #41785

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

Fenn-CS
Copy link
Contributor

@Fenn-CS Fenn-CS commented Nov 28, 2023

Ref #41381 (comment)

After moving the SearchResult to its own component and leaving out the openResult method, the search results do not lead anywhere but but error out.

Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#41381 (comment)

this element should be a real link

@Fenn-CS
Copy link
Contributor Author

Fenn-CS commented Nov 28, 2023

#41381 (comment)

this element should be a real link

@ChristophWurst using the href attribute of NcListItem would force the search result to open in a new tab, is this the desired behavior?

https://github.com/nextcloud-libraries/nextcloud-vue/blob/master/src/components/NcListItem/NcListItem.vue#L319

@ChristophWurst
Copy link
Member

Then the component needs a new prop to influence this behavior

@Fenn-CS
Copy link
Contributor Author

Fenn-CS commented Nov 28, 2023

@ChristophWurst that makes sense, I have created these issue for that here : nextcloud-libraries/nextcloud-vue#4880 and here #41800

Because this breaks search entirely, so this PR should restore the old initial before of using JavaScript to trigger the routing.

@AndyScherzinger
Copy link
Member

/backport to stable28

@Fenn-CS
Copy link
Contributor Author

Fenn-CS commented Nov 29, 2023

/compile amend /

Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for simple clicks again

The approach of window.location is still there and problematic

@Fenn-CS Fenn-CS force-pushed the fix-open-search-result branch 2 times, most recently from ab654cb to f639997 Compare November 29, 2023 15:47
@Fenn-CS
Copy link
Contributor Author

Fenn-CS commented Nov 29, 2023

/compile amend /

After moving the `SearchResult` to its own component and leaving
 out the openResult method, the search results do not lead anywhere but
 but error out.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@AndyScherzinger AndyScherzinger merged commit 0a8ceb4 into master Nov 29, 2023
42 checks passed
@AndyScherzinger AndyScherzinger deleted the fix-open-search-result branch November 29, 2023 18:45
@blizzz blizzz mentioned this pull request Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants