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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user