Issue after adding application gateway

Hi, I have deployed discourse in the vm, added sso plugin (discourse-openid-connect) as for sso we require ssl, we have created application gateway in azure, where hitting the url with /community redirects to the discourse portal thats because we have set pathRule in the azure, The problem is hitting the url just loading title and fav icon & the complete page is blank, The content is not rendering.
Also I have added override hidden path as / in azure.
Here are the logs:

Started GET "/" for 40.115.167.24 at 2019-02-14 09:33:25 +0000
Started GET "/" for 40.115.167.24 at 2019-02-14 09:33:26 +0000
Processing by ListController#latest as HTML
  Rendering list/list.erb within layouts/application
  Rendered list/list.erb within layouts/application (2.1ms)
  Rendered layouts/_head.html.erb (4.5ms)
  Rendered common/_discourse_stylesheet.html.erb (0.2ms)
  Rendered application/_header.html.erb (0.2ms)
Completed 200 OK in 35ms (Views: 8.7ms | ActiveRecord: 12.6ms)
Started GET "/" for 40.115.167.24 at 2019-02-14 09:33:34 +0000
Processing by ListController#latest as HTML
  Rendering list/list.erb within layouts/application
  Rendered list/list.erb within layouts/application (1.9ms)
  Rendered layouts/_head.html.erb (1.3ms)
  Rendered common/_discourse_stylesheet.html.erb (0.2ms)
  Rendered application/_header.html.erb (0.1ms)
Completed 200 OK in 27ms (Views: 8.4ms | ActiveRecord: 5.4ms)