Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to have redirects #5

Open
Sanqui opened this issue Jun 26, 2017 · 4 comments
Open

Make it possible to have redirects #5

Sanqui opened this issue Jun 26, 2017 · 4 comments

Comments

@Sanqui
Copy link
Member

Sanqui commented Jun 26, 2017

It would be very useful to have redirects on the deployed website.

@hroncok
Copy link
Member

hroncok commented Jun 26, 2017

I see 3 options:

  • switch to dynamic Flask webapp
  • implement redirects in Elsa (Frozen-Flask) via HTML meta header (probably ugly)
  • do the redirects on some kind of CDN (needs to be synchorinised, also CloudFlare only allows 3 page rules for free, etc.)

@Sanqui
Copy link
Member Author

Sanqui commented Jun 26, 2017

I was going to enumerate two of these options. Currently, this can be solved with <meta> redirects, which are however very difficult to create in such a way that Frozen-Flask can collect them. Deploying for "real" would also solve this.

@hroncok
Copy link
Member

hroncok commented Jun 26, 2017

Well i was thinking we could teach Frozen-Flask to create those mate redirects when it sees a flask.redirect, but than again you would also need to feed it a route generator in order to be able to collect them. My opinion: Too much work, given the fact that we'll probably need to switch to dynamic website soon enough anyway.

@encukou
Copy link
Member

encukou commented Jun 27, 2017

Note: Even when we switch to something dynamic, I'd like to keep the Elsa-driven static site working for local development. But, URL stability won't matter too much there.

@encukou encukou transferred this issue from pyvec/naucse.python.cz Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants