KamandPrompt / CodeManiacs

IIT Mandi Online Judge
MIT License
22 stars 58 forks source link

Bug: Problem id pointing to the particular problem #175

Closed Gautam-Arora24 closed 3 years ago

Gautam-Arora24 commented 3 years ago

Fixes #156

Changes Proposed The problem id in the table should point to the particular problem.

My Solution Now on clicking the id number, the page redirects to the particular problem. Though the link I used is localhost, it should be changed once the application is in production.

pranshukharkwal commented 3 years ago

Hi @Gautam-Arora24 Do not use http://localhost:3000 in the code because it will cause problems later on when we host this site on other domains. Make it domain independent.

Gautam-Arora24 commented 3 years ago

That's what I told that this need to be changed when the application is on production. Still I am looking a better way for it

pranshukharkwal commented 3 years ago

@Gautam-Arora24 I think only including /problem/qId will solve the problem i.e removing the localhost:3000 part. See if it works. If not, we will look for some other solution.

Gautam-Arora24 commented 3 years ago

Sure, let me check