Skip to content

Commit

Permalink
UD-838 URL redirect in Che
Browse files Browse the repository at this point in the history
http://localhost:8080/ --> http://localhost:8080/dashboard
http://localhost:8080/che --> http://localhost:8080/dashboard
(note: if workspace is specified with che/ prefix, there is no redirect)

Change-Id: Ie02221cadcbe59e27abf1d58551d2b7956910058
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
  • Loading branch information
benoitf committed Dec 8, 2015
1 parent da1d4e1 commit 9795f02
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 18 deletions.
4 changes: 3 additions & 1 deletion assembly-sdk-war/src/main/webapp/META-INF/context.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@
Codenvy, S.A. - initial API and implementation
-->
<Context allowCasualMultipartParsing="true" />
<Context allowCasualMultipartParsing="true">
<Valve className="org.apache.catalina.valves.rewrite.RewriteValve"/>
</Context>
1 change: 1 addition & 0 deletions assembly-sdk-war/src/main/webapp/WEB-INF/rewrite.config
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
RewriteRule ^/$ ../dashboard [R]
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
RewriteRule ^/api/ext/(.*)$ /che/ext/$1 [L]
RewriteRule ^/api/(.*)$ /che/api/$1 [L]
RewriteRule ^/$ /dashboard [R]
17 changes: 0 additions & 17 deletions assembly-sdk/src/assembly/webapps/ROOT/index.html

This file was deleted.

0 comments on commit 9795f02

Please sign in to comment.