feat(web): add short /community and /c links
This commit is contained in:
parent
84efaba001
commit
e267b79281
1 changed files with 22 additions and 0 deletions
22
netlify.toml
22
netlify.toml
|
|
@ -22,6 +22,28 @@
|
|||
[headers.values]
|
||||
Cache-Control = "public, max-age=31536000, immutable"
|
||||
|
||||
# Human-friendly short links.
|
||||
# /community -> the app's Community page (HashRouter route).
|
||||
# /c -> the Cordn room reference (short link for sharing).
|
||||
# Keep these BEFORE the SPA fallback.
|
||||
[[redirects]]
|
||||
from = "/community"
|
||||
to = "/#/community"
|
||||
status = 302
|
||||
force = true
|
||||
|
||||
[[redirects]]
|
||||
from = "/c"
|
||||
to = "https://cordn.net/chat/cordn1qgdhwumn8ghj7un9d3shjtnnddshgefdwdcx7arn9ehhyecpyqpgz6s9k82wwznal8r39mm0wfe8wsnf6eda3ghjvt8qxvxs3ptfxqq5wd4kzar9wdcx7arn8f3k7mtdw4hxjare8hqt74"
|
||||
status = 302
|
||||
force = true
|
||||
|
||||
[[redirects]]
|
||||
from = "/cordn"
|
||||
to = "https://cordn.net/chat/cordn1qgdhwumn8ghj7un9d3shjtnnddshgefdwdcx7arn9ehhyecpyqpgz6s9k82wwznal8r39mm0wfe8wsnf6eda3ghjvt8qxvxs3ptfxqq5wd4kzar9wdcx7arn8f3k7mtdw4hxjare8hqt74"
|
||||
status = 302
|
||||
force = true
|
||||
|
||||
[[redirects]]
|
||||
from = "/*"
|
||||
to = "/index.html"
|
||||
|
|
|
|||
Loading…
Reference in a new issue