fix redirect

This commit is contained in:
D070615
2025-07-07 15:37:02 +02:00
parent 7c33813102
commit c6cc70a062
2 changed files with 5 additions and 7 deletions

View File

@@ -3,16 +3,14 @@ service CatalogService @(path:'/browse') {
/** For displaying lists of Books */
@readonly entity ListOfBooks as projection on Books
excluding { descr };
excluding { descr, contents };
/** For display in details pages */
@readonly entity Books as projection on my.Books { *,
author.name as author
} excluding { createdBy, modifiedBy };
} excluding { createdBy, modifiedBy, contents };
@requires: 'authenticated-user'
action submitOrder ( book: Books:ID, quantity: Integer ) returns { stock: Integer };
event OrderedBook : { book: Books:ID; quantity: Integer; buyer: String };
}
@cds.redirection.target: true
@readonly entity Contents as projection on my.Contents;
}

View File

@@ -7,6 +7,6 @@ extend service CatalogService with {
*, //> non-localized defaults, e.g. title
key ID,
texts.title as localized_title,
texts.locale
};
texts.locale,
} excluding { contents };
}