Better support for notes permalink
This commit is contained in:
parent
b725eb047d
commit
301c7ab1a0
16 changed files with 49 additions and 29 deletions
application/api
|
@ -67,7 +67,7 @@ class ApiUtils
|
|||
if (! $bookmark->isNote()) {
|
||||
$out['url'] = $bookmark->getUrl();
|
||||
} else {
|
||||
$out['url'] = $indexUrl . $bookmark->getUrl();
|
||||
$out['url'] = rtrim($indexUrl, '/') . '/' . ltrim($bookmark->getUrl(), '/');
|
||||
}
|
||||
$out['shorturl'] = $bookmark->getShortUrl();
|
||||
$out['title'] = $bookmark->getTitle();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue