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

Add possibility to show and configure a "go back" button in final step #674

Merged
merged 1 commit into from
Jul 15, 2020

Conversation

LukasKalbertodt
Copy link
Member

@LukasKalbertodt LukasKalbertodt commented Jul 14, 2020

Closes #593

Often, Studio feels somewhat like a dead end. In the end, the user is
just offered to record a new recording. But usually, the user wants to
leave or return to the page they are coming from. This commit makes
that possible.

We might want to have a better solution for when Studio is opened in a new tab still.

For the record: I decided against a solution that uses or can be configured to use document.referrer. While passing return.target=referrer looks good, relying on the referrer is a fragile solution. The referrer can get lost for a couple of reasons. Additionally, the referrer can be unexpected -- for example, Opencast might forward /studio to the login page when the user is not authenticated, meaning that the login page will be the referrer. We can always add the referrer option later when people really want it, but I don't think it's a great idea.

…tion

Often, Studio feels somewhat like a dead end. In the end, the user is
just offered to record a new recording. But usually, the user wants to
leave or return to the page they are coming from. This commit makes
that possible.
@LukasKalbertodt
Copy link
Member Author

We decided not to have an extra solution for situations where studio is opened in a new tab. As we cannot close that tab, we can only show a text box "if you want to return, close this tab" ... which is not ideal. We rather expect LMS to stop opening Studio in a new tab once this feature lands, as Studio is not a "dead end" anymore.

@LukasKalbertodt LukasKalbertodt merged commit 29c170e into elan-ev:master Jul 15, 2020
@LukasKalbertodt LukasKalbertodt deleted the back-link branch July 15, 2020 10:34
LukasKalbertodt added a commit to elan-ev/opencast-ilias that referenced this pull request Aug 7, 2020
Opencast Studio added support for passing a return link (including
a label). Studio then shows a "Quit and go back" button in the last
step (after recording). This avoids users getting trapped in UI
dead ends.

See this Studio PR for more information:
   elan-ev/opencast-studio#674

Note that on older Studio versions, adding these parameters does
nothing. A warning about "unknown parameter" is printed in the
browser dev console, but other than that, the parameters are
ignored.

One might think about making the label configurable in the plugin's
configuration. But "ILIAS" is a good default I guess.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Return URL
1 participant