Skip to content

Commit

Permalink
Merge pull request #3749 from nextcloud/fix/routes/next
Browse files Browse the repository at this point in the history
fix additional routes
  • Loading branch information
dartcafe authored Oct 13, 2024
2 parents 7a35497 + 6061253 commit 33afbda
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Dashboard/PollWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function getIconClass(): string {
}

public function getUrl(): ?string {
return $this->urlGenerator->linkToRouteAbsolute(AppConstants::APP_ID . '.page.index');
return $this->urlGenerator->linkToRouteAbsolute(AppConstants::APP_ID . '.page.indexindex');
}

public function load(): void {
Expand Down
2 changes: 1 addition & 1 deletion lib/Db/Share.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public function getURL(): string {
);
} elseif ($this->token) {
return $this->urlGenerator->linkToRouteAbsolute(
AppConstants::APP_ID . '.public.vote_page',
AppConstants::APP_ID . '.public.votePage',
['token' => $this->token]
);
} else {
Expand Down
2 changes: 1 addition & 1 deletion lib/Provider/SearchProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function search(IUser $user, ISearchQuery $query): SearchResult {
}

public function getOrder(string $route, array $routeParameters): int {
if (in_array(strtolower($route), [AppConstants::APP_ID . '.page.index', AppConstants::APP_ID . '.page.vote'])) {
if (in_array(strtolower($route), [AppConstants::APP_ID . '.page.indexindex', AppConstants::APP_ID . '.page.vote'])) {
return -5;
}
return 51;
Expand Down

0 comments on commit 33afbda

Please sign in to comment.