codalab-competitions icon indicating copy to clipboard operation
codalab-competitions copied to clipboard

Hyperlinks to other competition pages automatically reformat to an incorrect link

Open sashaspala opened this issue 5 years ago • 3 comments

When inserting hyperlinks in the text editor on the Edit menu, hyperlinks to other competitions (e.g. https://competitions.codalab.org/competitions/22759) automatically reformat to remove the /competition/ from the link.

For example, when I input the link https://competitions.codalab.org/competitions/22759 into the editor menu, it automatically reformats the link to ../22759 on save. Screen Shot 2020-02-12 at 2 38 47 PM Manually adding the /competitions/ portion of the path ../[competition_id] works on save. Screen Shot 2020-02-12 at 2 38 58 PM

I am using Firefox 72.0.1

sashaspala avatar Feb 12 '20 19:02 sashaspala

Hi,

Thank you for reporting. I believe it is normal that the URL got replaced by ../. But indeed it seems to miss to add /competitions/ so we need to fix this.

At least you found a work-around to solve the issue temporarily. Another work-around could be to edit the HTML page locally (with a text editor) and upload it directly when editing the competition. Then it wouldn't be modified automatically.

Didayolo avatar Feb 17 '20 14:02 Didayolo

The same problem got reported in this issue: Smart bug #2377

I attach the original post:

"When we create links in HTML pages, eg page https://competitions.codalab.org/competitions/2321

Round 0: Sample data.
Round 1: Novice level. binary classification problems, dense data.
Round 2: Intermediate level. Multi-class classification, dense data.
Round 3: Advanced level. Multi-class and multi-label classification, dense and sparse data.
Round 4: Expert level. Everything else plus regression.

The smart editor replaces absolute link by RELATIVE links which are WRONG.

For example, I write: a href="https://competitions.codalab.org/competitions/7471"

the editor replaces it by: a href="../7471"

which gets translated into: https://competitions.codalab.org/7471

INSTEAD OF

https://competitions.codalab.org/competitions/7471

I wrote about this bug multiple times. Somehow the Github issues always disappear but the bug remains."

Didayolo avatar May 31 '21 14:05 Didayolo

Still the case on Python3 version.

Didayolo avatar Dec 02 '21 15:12 Didayolo