Skip to content

Commit

Permalink
fix additional routes
Browse files Browse the repository at this point in the history
Signed-off-by: dartcafe <github@dartcafe.de>
  • Loading branch information
dartcafe committed Oct 13, 2024
1 parent 7a35497 commit 6061253
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 6061253

Please sign in to comment.