Skip to content

Commit

Permalink
Fixed the routing for osf and branded providers
Browse files Browse the repository at this point in the history
  • Loading branch information
bp-cos committed Nov 8, 2023
1 parent 7a2f13b commit d96952b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/preprints/index/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,9 @@ export default class Preprints extends Controller {

@action
onSearch(query: string) {
let route = 'search';
const route = 'preprints.discover';

if (this.theme.isSubRoute) {
route = 'provider.discover';
}

this.router.transitionTo(route, { queryParams: { q: query } });
this.router.transitionTo(route, this.theme.id, { queryParams: { q: query } });
}

get supportEmail(): string {
Expand Down

0 comments on commit d96952b

Please sign in to comment.