[Bug]: The View Code button on the sample project details page does not open/show starter code correctly.
What happened?
The View Code button on the project details page was not opening/displaying the starter code preview as intended.
Expected:
When a user clicks View Code, the starter code preview panel should open and display the corresponding starter code for that project.
Actual:
Clicking View Code did not display anything, preventing users from previewing project starter files.
Steps to reproduce
- Run the app locally with python app.py.
- Open http://127.0.0.1:5000/project/1.
- Click the View Code button on the project page.
- Nothing happens—starter code does not open or display.
- Open browser console (F12) and a JavaScript error appears from static/script.js.
Expected behaviour
Clicking View Code should open the code preview panel and display the project’s starter code correctly.
This helps users immediately preview the starter template before downloading or beginning the project.
Area of the app affected
Starter code viewer
Python version
Python 3.11.4
Operating system
Windows 11
Relevant error output or logs
No terminal crash.
Issue reproduced from UI behavior where starter code preview was not opening/displaying correctly.
Before submitting
- [x] I searched existing issues and this has not been reported before.
- [x] I can reproduce this bug consistently with the steps above.
- [x] I am running the latest version of the main branch.
i want to solve this under gssoc-2026
Hi! @komalharshita I’d like to work on this issue under GSSoC-2026.
I already have a working fix prepared locally and can open a PR once assigned.
Please assign this issue and add the GSSoC label if applicable.
Thank you!
Hi @komalharshita ,
I would like to work on this issue under GSSoC 2026.
I have reviewed the issue description and would like to take it up. Could you please assign it to me?
Thank you!
Hi ,I would like to work on this issue under GSSoC 2026. Could you please assign this issue to me? Thank you!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions!
This issue was closed because it has been inactive for an extended period. If this issue is still relevant, feel free to reopen it or create a new one.