You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Preview: Redirect to published URL on exit (#20556)
* Preview Exit: Gets the page's published URL on exit for redirect
* Preview Open Website: Uses the page's published URL
* Tweaked the published URL logic
* Code amends based on @copilot's suggestions
@@ -89,6 +91,19 @@ export class UmbPreviewContext extends UmbContextBase {
89
91
});
90
92
}
91
93
94
+
async #getPublishedUrl(): Promise<string|null>{
95
+
if(!this.#unique)returnnull;
96
+
97
+
// NOTE: We should be reusing `UmbDocumentUrlRepository` here, but the preview app doesn't register the `itemStore` extensions, so can't resolve/consume `UMB_DOCUMENT_URL_STORE_CONTEXT`. [LK]
98
+
const{ data }=awaittryExecute(this,DocumentService.getDocumentUrls({query: {id: [this.#unique]}}));
0 commit comments