When using SetContentAsync can base Uri be set anywhere #2652
Unanswered
dammitjanet
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Ok, given some html that has relative path requests to resource files (i.e. css style sheets etc)
when loaded into a page with SetContentAsync(html), these relative requests are not found obviously.
Is there any way to set the base url of the loaded html snippet in code, or any way to intercept requests so that requests to not found resources can be remapped to the correct file (AddRequestInterceptor perhaps? but I couldn't find any examples of this in use)
Note, adding a base tag to the head of the HTML does work, but I am looking to see if there is a solution for specifically setting the baseUri from code and without modifying the HTML itself.
Beta Was this translation helpful? Give feedback.
All reactions