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:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user