mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-27 00:52:36 +03:00
11 lines
216 B
JavaScript
11 lines
216 B
JavaScript
|
import {isBlank} from '@ember/utils';
|
||
|
|
||
|
export default function SlugUrl(url, query) {
|
||
|
if (query && !isBlank(query.slug)) {
|
||
|
url += `slug/${query.slug}/`;
|
||
|
delete query.slug;
|
||
|
}
|
||
|
|
||
|
return url;
|
||
|
}
|