You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contributingGuides/philosophies/ROUTING.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,14 @@ Aim for the shortest possible URL that is also still human readable.
21
21
Exceptions:
22
22
- When abbreviated paths are used in specific instances like `r/` (for reports) and `a/` (for accounts) for strategic purposes
23
23
24
+
### - SHOULD use human readable names before using IDs
25
+
Example:
26
+
1.`domain/expensify.com/settings` - It's better to use the domain name "expensify.com" rather than an ID because it is readable, won't ever change, and is not a privacy or security concern
27
+
28
+
Exceptions:
29
+
- When there would be PII (personally identifiable information) that would leak in the URL like email addresses, use an ID instead
30
+
- When the name can be updated but the path remains the same (eg. a workspace name), use an ID instead
31
+
24
32
### - MUST use kebab-case for all parts of a URL (eg. words separated by hyphens)
0 commit comments