You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the default_url contains a hash (aka fragment) (our app uses vue-router with hash-based routing), e.g. default_url = /foo/#/workspace, there is a discrepancy between the full URL logged at startup vs the full URL in the jpserver-*-open.html file.
When the server starts up and logs the URL it is using
This is incorrect as the token querystring has become part of the hash and therefore is not recognised as a querystring by the browser, and opening the URL results in the Jupyter page for logging in / entering the token manually.
Whereas the URL that gets outputted to the jpserver-xxxx-open.html file that actually gets opened is from tornado.httputil.url_concat
which is correct as the querystring comes before the hash and everything works properly.
Reproduce
Use a default_url with a hash in it
Expected behavior
When handling default_url it should account for the possibility of a hash/fragment.
I should be able to come up with a quick fix for this, having debugged the issue to this extent.
Otherwise I would say it would be safer to handle the URL the same way in each of the two cases, rather than the current different handling.
Context
Operating System and version: N/A
Browser and version: N/A
Jupyter Server version: 2.7
The text was updated successfully, but these errors were encountered:
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋
Description
When the
default_url
contains a hash (aka fragment) (our app uses vue-router with hash-based routing), e.g.default_url = /foo/#/workspace
, there is a discrepancy between the full URL logged at startup vs the full URL in thejpserver-*-open.html
file.When the server starts up and logs the URL it is using
jupyter_server/jupyter_server/serverapp.py
Lines 2153 to 2158 in 2563bae
jupyter_server/jupyter_server/serverapp.py
Lines 2106 to 2110 in 2563bae
which results in
This is incorrect as the token querystring has become part of the hash and therefore is not recognised as a querystring by the browser, and opening the URL results in the Jupyter page for logging in / entering the token manually.
Whereas the URL that gets outputted to the
jpserver-xxxx-open.html
file that actually gets opened is fromtornado.httputil.url_concat
jupyter_server/jupyter_server/serverapp.py
Lines 2671 to 2675 in 2563bae
which results in
which is correct as the querystring comes before the hash and everything works properly.
Reproduce
default_url
with a hash in itExpected behavior
When handling
default_url
it should account for the possibility of a hash/fragment.I should be able to come up with a quick fix for this, having debugged the issue to this extent.
Otherwise I would say it would be safer to handle the URL the same way in each of the two cases, rather than the current different handling.
Context
The text was updated successfully, but these errors were encountered: