Skip to content

Move HTMLtoJSX page off React site#6608

Merged
zpao merged 1 commit intofacebook:masterfrom
Daniel15:htmltojsx-move
May 27, 2016
Merged

Move HTMLtoJSX page off React site#6608
zpao merged 1 commit intofacebook:masterfrom
Daniel15:htmltojsx-move

Conversation

@Daniel15
Copy link
Copy Markdown
Member

As per @zpao's request at reactjs/react-magic#52, this moves the HTML to JSX page off the React site and onto the React-Magic site. The new page is at http://magic.reactjs.net/htmltojsx.htm. Currently it hotlinks some files from the React site (stylesheet and live code editor) but I'm planning on making it properly standalone soon.

I've made the old page (/html-jsx.html) a "redirect" to the new page. I use the term "redirect" loosely here - Unfortunately Github Pages lacks the ability to do 301 redirects (along with many other basic web hosting features), so I needed to use a meta refresh tag to do the redirect.

Comment thread docs/html-jsx.html
<title>HTML to JSX</title>
<!-- Github Pages lacks basic functionality such as permanent server-side
redirects, so the best we can do is a meta redirect -->
<meta http-equiv="refresh" content="0; url=http://magic.reactjs.net/htmltojsx.htm" />
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to merge and then follow up to use the redirect layout we have set up for this.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PS .htm? I think that extension lost the war 😛

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, I didn't even notice there was a redirect layout.

I like .htm... It's one less character, and consistent with pretty much everything else having a three-letter file extension (well, apart from .js). The extra l doesn't provide any extra value 😄 haha

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dream of a world where Github Pages supports server-side redirects... Maybe one day. Missing functionality is the main reason I'm not really using Github Pages for anything much.

@zpao
Copy link
Copy Markdown
Member

zpao commented May 27, 2016

Thanks!

@karanthakral
Copy link
Copy Markdown

seems the links is not working

@Daniel15
Copy link
Copy Markdown
Member Author

Daniel15 commented Oct 7, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants