Forums

account-agnosticity

Hi,

Is there any way to use account-agnostic URLs ??

Not asking about anonymous access here, rather about the ability to publish URLs that do not depend on a particular username. I’m thinking of something like this:

https://www.pythonanywhere.com/consoles/bash/new

Please, note that the /user/XYZ123 part is not present. For a logged-in user the current account should be used to redirect to:

https://www.pythonanywhere.com/user/XYZ123/consoles/bash/new

Otherwise, the redirection is performed to:

https://www.pythonanywhere.com/login/?next=/consoles/bash/new

What do you make of this?? :)

Thanks!

Leandro

I don't think that's something we're likely to implement any time soon. The backend does use the username in the URL for the education features.

Hi Glenn,

Sorry to hear that.

How about this URLs: https://www.pythonanywhere.com/login/?next=/consoles/bash/new I gather that the login page could insert the username before the actual redirection. Or a $placeholder$ that a filter could use to pre-process https://www.pythonanywhere.com/user/$CURRENTUSER$/consoles/bash/new ?

Already looking for alternatives. Thanks for your answer!

Leandro

What is the actual problem that you're trying to solve?

Hi,

please, refer to the original post.

Leandro

The original post describes a feature, not the problem it's trying to solve.

Never called it "a problem", did I?

What I'm asking is that you tell me the point of the feature.

Glenn,

Having “account-agnostic” links (not anonymous, but agnostic) would make easier for teachers to prepare exercises like this:

Steps:
1.  Go to your [account settings](https://www.pythonanywhere.com/account/#teacher) and pick CNBA as your teacher
1. Open a [new Python console](https://www.pythonanywhere.com/consoles/python3.7/new)

Making a link useful for any student, with no further instructions (placeholders and such).

While writing back to you, I discovered that some links work as I’m suggesting. Namely, the first-level (module?) ones, like the first step of the example. Which is great! :D
The ones that don’t follow the suggestion seem to be those that go deeper (into a module?)

No worries, just a "nice-to-have" :)

Leandro

ahh gotcha. I understand the use case now.

yes- you could do https://www.pythonanywhere.com/consoles and https://www.pythonanywhere.com/account and that would work, but it's certainly not very consistently implemented (eg: the webapps url is currently /web_app_setup, and we do not have a databases/tasks account-agnostic link).

Thanks for the suggestion, we will look into standardizing that!