Skip to content

Commit 19ea995

Browse files
authored
Add clarification around URL mappings and file targets. (#7272)
We received !191781 reporting issues with URL mappings set to a file failing to resolve due to the activity proxy adding a trailing slash to the resolved URL. We don't consider this a supported use case, and have added a note indicating that this may lead to unexpected behavior.
1 parent b70346a commit 19ea995

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/activities/Development_Guides.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ To add or modify your application's URL mappings, click on `Activities -> URL Ma
220220
| PREFIX | TARGET |
221221
|-----------------------|--------------------------|
222222
| `/google/{subdomain}` | `{subdomain}.google.com` |
223+
- Targets must point to a directory; setting a target to a file (e.g. `example.com/index.html`) is unsupported and may lead to unexpected behavior.
223224
- Because of how URL globbing works, if you have multiple prefix urls with the same initial path, you must place the shortest of the prefix paths last in order for each url mapping to be reachable. For example, if you have `/foo` and `/foo/bar`, you must place the url `/foo/bar` before `/foo` or else the mapping for `/foo/bar` will never be reached.
224225

225226
| ✅ DO | ❌ DON'T |

0 commit comments

Comments
 (0)