What is the best way to determine if requested URL is related to admin pages/resources? #16672
Answered
by
hishamco
arkadiuszwojcik
asked this question in
Q&A
-
I am writing my own module for redirection, but I would like just in case exclude all urls related to admin pages. What is the best way to check in OC if given URL (for current tenant) is admin related or is it regular one? |
Beta Was this translation helpful? Give feedback.
Answered by
hishamco
Sep 5, 2024
Replies: 1 comment
-
Simple you can check the URL if contains |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
arkadiuszwojcik
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Simple you can check the URL if contains
AdminUrlPrefix
in theOC.Admin
module, for more info check https://docs.orchardcore.net/en/latest/reference/modules/Admin/