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 Preview URL preferences documentation #945

Merged
merged 2 commits into from
Nov 26, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/main/pages/che-7/end-user-guide/ref_devfile-reference.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,20 @@ commands:

The example above opens `++http://__<server-domain>__/myweb++`, where `_<server-domain>_` is the URL to the dynamically created Kubernetes Ingress or OpenShift Route.

==== Setting the default way of opening preview URLs

By default, a notification is displayed to ask the user how the URL should be opened. To specify the preferred way of previewing a service URL, use preferences.

. Open {prod-short} preferences in *File -> Settings -> Open Preferences* and find `che.task.preview.notifications` in the *Che* section.

. Choose from the list of possible values:
+
* `on` -- enables a notification to ask the user how the URL should be opened
* `alwaysPreview` -- the preview URL opens automatically in the *Preview* panel as soon as a task is running
* `alwaysGoTo` -- the preview URL opens automatically in a separate browser tab as soon as a task is running
* `off` -- disables opening the preview URL (automatically and with a notification)


== Devfile attributes

Devfile attributes can be used to configure various features.
Expand Down