3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-05 03:05:41 +00:00

Merge pull request #17691 from qay21/fix-components-url

Fix components presenting wrong URLs
This commit is contained in:
snipe
2025-08-21 11:37:27 +01:00
committed by GitHub

View File

@ -191,7 +191,7 @@ class ComponentPresenter extends Presenter
*/
public function nameUrl()
{
return (string) link_to_route('consumables.show', e($this->name), $this->id);
return (string) link_to_route('components.show', e($this->name), $this->id);
}
/**
@ -200,6 +200,6 @@ class ComponentPresenter extends Presenter
*/
public function viewUrl()
{
return route('accessories.show', $this->id);
return route('components.show', $this->id);
}
}