RedHatInsights / insights-chrome

Chroming for Insights apps
MIT License
26 stars 131 forks source link

Page refresh appears to be broken #66

Closed dlabrecq closed 5 years ago

dlabrecq commented 5 years ago

Refreshing the Cost Details page of Cost Management ends up displaying a blank page. I have to enter the following URL to start over. This only started happening after integrating with the Insights platform.

https://prod.foo.redhat.com:1337/insights/platform/cost-management/

See https://github.com/project-koku/koku-ui/issues/175 for additional details

karelhala commented 5 years ago

There is a problem in project-koku you are starting / in index.tsx#L11 and once you are navigated somewhere and hit F5 router is confused and doesn't know from where to serve content and is lost.

When I tried it I bumped into couple more problems, but that might be related solely to my machine.

dlabrecq commented 5 years ago

It appears that only process.env.APP_PUBLIC_PATH is being used, not the default insights/platform/cost-management path. Using /insights/platform/cost-management by itself did not resolve the issue.

Note: process.env.APP_PUBLIC_PATH is also equal to /insights/platform/cost-management/

dlabrecq commented 5 years ago

Closing as Insights beta seems to be refreshing as expected.