HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
React view through PageDispatchController rendering raw html (page source) v.3.3
russc
New
I'm trying to create a custom application addon that renders react views. I have read through everything on the documentation and examples provided, but I have run into several issues along the way. Fortunately, I have worked through all of them prior to this one, which I could really use some help on.
- I have settings/bootstrap.php dispatcher pointing to my controller which is extending PageDispatchController.
- I have a RouteHandler
- I add the route in entries/fourm
My custom route is at least not saying "Page Not Found" anymore, but it all I get is raw html from the actual page source.
Tagged:
0
Comments
If you're talking about YAGA reactions I can help you with that, but without sample code that may be hard.
The problem you described sounds like the response content-type is set wrongly (text/plain instead of text/html).
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
Thank you!!!! The example in the docs creates the api route, which is has the CONTENT_TYPE set to 'application/json'. Your comment helped direct my attention to that change that was needed. Thanks again!