mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
parent
a05fe98c7a
commit
b260359852
1 changed files with 6 additions and 1 deletions
|
@ -21,6 +21,11 @@ const urlPartsSchema = () => Joi.object().keys({
|
|||
hash: Joi.string().regex(/^\//, 'start with a /')
|
||||
}).default();
|
||||
|
||||
const appUrlPartsSchema = () => Joi.object().keys({
|
||||
pathname: Joi.string().regex(/^\//, 'start with a /'),
|
||||
hash: Joi.string().regex(/^\//, 'start with a /')
|
||||
}).default();
|
||||
|
||||
const defaultRelativeToConfigPath = path => {
|
||||
const makeDefault = (locals, options) => (
|
||||
resolve(dirname(options.context.path), path)
|
||||
|
@ -92,7 +97,7 @@ export const schema = Joi.object().keys({
|
|||
// definition of apps that work with `common.navigateToApp()`
|
||||
apps: Joi.object().pattern(
|
||||
ID_PATTERN,
|
||||
urlPartsSchema()
|
||||
appUrlPartsSchema()
|
||||
).default(),
|
||||
|
||||
// settings for the esArchiver module
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue