codeamp / panel

CodeAmp Web Application. Built with React.js, GraphQL and Material-UI.
12 stars 7 forks source link

Fix issue when visiting a project page with a direct link #304

Closed aballman closed 5 years ago

aballman commented 5 years ago

Solution: Have the components use the environment prop that is handed down from the environment selector. If the app store is set, then use that. If not, then try to parse the url slug to get the current environment. If that doesn't parse or it's not an environment the project supports, then present user with the environment selection screen.