1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Added link functionality

This commit is contained in:
Dan Brown
2015-07-16 19:15:22 +01:00
parent 46217a5880
commit 787ad20ce7
10 changed files with 84 additions and 19 deletions

View File

@ -126,6 +126,12 @@ class PageController extends Controller
return redirect($page->getUrl());
}
public function redirectFromLink($pageId)
{
$page = $this->pageRepo->getById($pageId);
return redirect($page->getUrl());
}
/**
* Remove the specified resource from storage.
*