{"action":"opened","issue":{"url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/issues/477","repository_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer","labels_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/issues/477/labels{/name}","comments_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/issues/477/comments","events_url":"https://api.github.com/repos/kodeklubben/codeclub-viewer/issues/477/events","html_url":"https://github.com/kodeklubben/codeclub-viewer/issues/477","id":319327471,"number":477,"title":"Client and server code not equal when building under 'beta'","user":{"login":"NorwegianKiwi","id":8851134,"avatar_url":"https://avatars1.githubusercontent.com/u/8851134?v=4","gravatar_id":"","url":"https://api.github.com/users/NorwegianKiwi","html_url":"https://github.com/NorwegianKiwi","followers_url":"https://api.github.com/users/NorwegianKiwi/followers","following_url":"https://api.github.com/users/NorwegianKiwi/following{/other_user}","gists_url":"https://api.github.com/users/NorwegianKiwi/gists{/gist_id}","starred_url":"https://api.github.com/users/NorwegianKiwi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NorwegianKiwi/subscriptions","organizations_url":"https://api.github.com/users/NorwegianKiwi/orgs","repos_url":"https://api.github.com/users/NorwegianKiwi/repos","events_url":"https://api.github.com/users/NorwegianKiwi/events{/privacy}","received_events_url":"https://api.github.com/users/NorwegianKiwi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-01T21:04:01Z","updated_at":"2018-05-01T21:04:01Z","closed_at":null,"author_association":"COLLABORATOR","body":"To reproduce:\r\n* `cd codeclub-viewer`\r\n* `echo beta > url-path-prefix.config`\r\n* `yarn build`\r\n* `yarn serve`\r\n\r\nGo to `localhost:8080/beta` in your browser. In the browser console, the following warning shows up:\r\n```\r\nWarning: React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated is different on the client or server:\r\n (client) n=\"push\" href=\"/beta/beta\" data-reactid=\r\n (server) n=\"push\" href=\"/beta\" data-reactid=\"25\">\r\n```\r\n\r\nIt seems to be related to the links in NavBar (`<LinkContainer>`) and/or Breadcrumb (`<NavLink>`, which uses `<Link>`). I tried using `process.env.PUBLICPATH_WITHOUT_SLASH` instead of just the string `/`, but that didn't seems to help, because the client just added another beta to the path (i.e. `/beta/beta/...`, but perhaps I didn't do it right (only spent a short time looking at this so far). \r\n"}}
{"actor":{"display_login":"NorwegianKiwi"}}