Closed edwardfoux closed 7 months ago
@edwardfoux can you please elaborate on the expected behavior?
Current: click on "Share Url" button in upper right corner and observe "See /corsdemo for more info" text instead of url
Expected: click on "Share Url" button in upper right corner and observe a short url of the format http://
At least it used to work like described in the "expected" case.
We are building a new playground as part of a website migration. It has shareable URLs, but does not rely on a shortener service. As of https://github.com/facebook/yoga/pull/1516 it does something a bit smarter than just base-64 encoding the input though.
// https://github.com/facebook/yoga/issues/1067
<Layout config={{ useWebDefaults: false }}>
<Node style={{ flexDirection: 'row', flexWrap: 'wrap' }}>
<Node style={{ borderWidth: 1, justifyContent: 'space-between' }}>
<Node style={{ height: 100, width: 100 }} />
<Node style={{ height: 100, width: 100 }} />
</Node>
<Node style={{ borderWidth: 1, justifyContent: 'space-between' }}>
<Node style={{ height: 150, width: 100 }} />
<Node style={{ height: 150, width: 100 }} />
</Node>
</Node>
</Layout>
Report
Url shortener is not working in Yoga playground.
Issues and Steps to Reproduce
Open yoga playground page https://yogalayout.com/playground/ create a test yoga layout Click "Share URL" Instead of url, I get "See /corsdemo for more info"
Expected Behavior
Short url to the yoga playground setup
Actual Behavior
"See /corsdemo for more info"
Link to Code
The full url still works: https://yogalayout.com/playground/?eyJ3aWR0aCI6NTAwLCJoZWlnaHQiOjUwMCwibWluV2lkdGgiOm51bGwsIm1pbkhlaWdodCI6bnVsbCwibWF4V2lkdGgiOm51bGwsIm1heEhlaWdodCI6bnVsbCwiYWxpZ25JdGVtcyI6MSwicGFkZGluZyI6eyJ0b3AiOiIyMCIsInJpZ2h0IjoiMjAiLCJib3R0b20iOiIyMCIsImxlZnQiOiIyMCJ9LCJwb3NpdGlvbiI6eyJ0b3AiOm51bGwsInJpZ2h0IjpudWxsLCJib3R0b20iOm51bGwsImxlZnQiOm51bGx9LCJjaGlsZHJlbiI6W3sid2lkdGgiOiIiLCJoZWlnaHQiOiIxMjAiLCJtaW5XaWR0aCI6bnVsbCwibWluSGVpZ2h0IjpudWxsLCJtYXhXaWR0aCI6bnVsbCwibW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