pycontw / pycon_archive_past_website

Freeze and archive historical PyConTW official websites as static sites.
MIT License
4 stars 7 forks source link

Locale switch will get 405 when accessing 2018-2020 websites #14

Closed josix closed 3 years ago

josix commented 3 years ago

Describe the bug The locale-switch button in websites of 2018 to 2020 will cause 405 error which is probably caused by the "POST" action. ~We may try to update this into using GET so as to fix it.~ We should remove the type=submit in each switch button and put <a> into the buttons.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://pycontw.github.io/pycon_archive_past_website/2020/zh-hant/ (same as 2018 and 2019)
  2. Click on locale switch button
  3. See error

Expected behavior Successful switching websites into another language

josix commented 3 years ago

Resovled by #17