Skip to content

Commit 75c5f0b

Browse files
authored
Merge pull request #5150 from platformsh/5149-fix-api-redirect-in-routes
adds regex anchor to path for old api docs location
2 parents 74572a7 + 1bd2262 commit 75c5f0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.platform/routes.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ https://{default}/:
1111
paths:
1212
"/frameworks/(?!deploy|drupal)(.*).html": { "to": "/guides/$1/deploy.html", "code": 301, "regexp": true }
1313
# Here just in case this path isn't update on redirection.io
14-
"/api(/index.html)?": { "to": "https://docs.upsun.com/api/", "code": 301, "regexp" : true }
14+
"^/api(/index.html)?": { "to": "https://docs.upsun.com/api/", "code": 301, "regexp" : true }
1515

1616
"https://search.{default}/":
1717
type: upstream

0 commit comments

Comments
 (0)