Skip to content

Added IsBlockPreview#7

Closed
AaronSadlerUK wants to merge 4 commits intorickbutterfield:developfrom
AaronSadlerUK:isblockpreview
Closed

Added IsBlockPreview#7
AaronSadlerUK wants to merge 4 commits intorickbutterfield:developfrom
AaronSadlerUK:isblockpreview

Conversation

@AaronSadlerUK
Copy link
Copy Markdown
Contributor

Added IsBlockPreview() extension.

There might be a better more fool proof way to do this check, but I've made it check that the request url contains blockpreviewapi

@rickbutterfield rickbutterfield changed the base branch from main to develop February 3, 2023 20:38
@rickbutterfield rickbutterfield self-assigned this Feb 25, 2023
@rickbutterfield
Copy link
Copy Markdown
Owner

Hey @AaronSadlerUK! Thanks for this. I had intended to add something like this but wanted it tied in to work similar to how IsBackOfficeRequest() and IsFrontEndRequest() work already in Umbraco, hooking into HttpContext. So I've added your work to the extension you can see in dbb1012!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants