Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix view feedback link when root_dir is set #1675

Merged
merged 2 commits into from
Mar 23, 2023

Conversation

brichet
Copy link
Contributor

@brichet brichet commented Sep 30, 2022

The view feedback link does not work when the root_dir of JupyterLab is different from './'.
The reason is that the feedback path is not relative to the root_dir but to the directory where nbgrader started.

This PR solves the problem by changing the feedback path to a relative path from root_dir.

I observed the same issue with classic notebook (in version 0.7.x) if the notebook_path is different from './'.
This PR should probably be back ported to 0.7.x branch.

Close #1664

@github-actions
Copy link
Contributor

Binder 👈 Launch a Binder on branch brichet/nbgrader/fix/view_feedback

@brichet
Copy link
Contributor Author

brichet commented Sep 30, 2022

@meeseeksdev backport to 0.7.x

@perllaghu
Copy link
Contributor

I can confirm this branch works for my docker notebook images, which are deployed in a K8s cluster.

@brichet brichet force-pushed the fix/view_feedback branch 2 times, most recently from 11afd3c to e294527 Compare November 30, 2022 15:21
@brichet brichet force-pushed the fix/view_feedback branch from ac5a6f1 to a31a510 Compare January 6, 2023 13:01
@brichet brichet self-assigned this Mar 8, 2023
@brichet brichet force-pushed the fix/view_feedback branch from a31a510 to 4fe1c19 Compare March 23, 2023 21:23
@brichet brichet merged commit cf0e59f into jupyter:main Mar 23, 2023
@brichet brichet deleted the fix/view_feedback branch March 23, 2023 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

View Feedback link not working whin in lab mode
2 participants