PolyGerrit: Fix going to /c/<change>/patch-num>/ with a slash
Bug: Issue 6827 Change-Id: I92504ecc46e601ac0d8dd99c0e07b7fb3fdb11c2
This commit is contained in:
@@ -139,8 +139,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Matches /c/<changeNum>/[<basePatchNum>..][<patchNum>].
|
||||
page(/^\/c\/(\d+)\/?(((\d+)(\.\.(\d+))?))?$/, function(ctx) {
|
||||
// Matches /c/<changeNum>/[<basePatchNum>..][<patchNum>][/].
|
||||
page(/^\/c\/(\d+)\/?(((\d+)(\.\.(\d+))?))?\/?$/, function(ctx) {
|
||||
// Parameter order is based on the regex group number matched.
|
||||
var params = {
|
||||
changeNum: ctx.params[0],
|
||||
|
||||
Reference in New Issue
Block a user