Benezivas / algobattle

Let teams compete by making them create hard instances and fast solvers for problems of your choice. Then pitch these instances and solvers against one another. All language-agnostic.
https://algobattle.org
MIT License
8 stars 3 forks source link

Direct links to problems do not work #167

Closed UnlimitedCookies closed 2 days ago

UnlimitedCookies commented 5 days ago

Direct links to algobattle problems do work after a few seconds. Going back to the problems overview page seems to be the only way to reload the probem page.

Reproduction This might only be reproducible from a student view. Directly accessing https://www.algobattle.org/problems/WS24%2F25/Substringfinder does yield a 404 Not found.. While accessing https://www.algobattle.org/problems/ and clicking on Substringfinder works just fine.

ImogenBits commented 2 days ago

This issue occurs when the requested URL contains an encoded forward slash (here in the name of the semester) and is accessed directly (i.e. not via the internal SPA router navigation). We've already seen this issue last year and discussed it here. Unfortunately, the currently best fix is to just avoid names containing forward slashes.