Remove support for deprecated '/c2/' URL

If there are still external links to '/c2/' URLs the Gerrit
administrator can define a URL alias for this in gerrit.config:

  [urlAlias "ChangeScreen2"]
    match = /c2/(.*)
    token = /c/$1

This way the deprecated URLs are still resolved to the change screen.

Change-Id: If298e1b3115f4af496eceb34cce50c0e79d1f071
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2015-07-22 08:48:09 +02:00
parent 74e21ae5ac
commit 24eea18a4c

View File

@@ -248,8 +248,6 @@ public class Dispatcher {
} else if (matchPrefix("/admin/", token)) {
admin(token);
} else if (/* DEPRECATED URL */matchPrefix("/c2/", token)) {
change(token);
} else if (/* LEGACY URL */matchPrefix("all,", token)) {
redirectFromLegacyToken(token, legacyAll(token));
} else if (/* LEGACY URL */matchPrefix("mine,", token)