This repository was archived by the owner on Mar 25, 2023. It is now read-only.
Replies: 1 comment
-
Implementation DetailsType
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Status: Done
TODOs
dynamic-urls
in FPM.ftd, handling for current packagedynamic-urls
in FPM.ftd, handling for foreign packageFollow: #311
PR: Refactor
PR: Refactor
PR: Code
PR: Issue Fixed
dynamic-urls
in sitemap:It will only contain
toc-items
, It won't contain any section or subsection in it.What parameters do we need in dynamic urls?
dynamic urls for dependencies
Package: b/FPM.ftd
Package: a/FPM.ftd
Sitemap Lookup
Assuming
fpm
is serving packagea.com
.Case 1: Request for Current Package
ftd
DocumentIf the request comes for
/foo/arpita/
,fpm
will look up the current packagesitemap
and serve it.Case 2: Request with dynamic parameters for Current Package
If the request comes for
/foo/abrark/
,fpm
will look upsitemap
it will not be matched, then it will look up infpm.dynamic-urls
and it will be matched and returnperson.ftd
file.Case 3: Request for dependency package
ftd
DocumentIf the request comes for
a.com/-/kameri-app/
so fpm will redirect it toa.com/todos/
, or if the request comes fora.com/-/kameri-app/add-todo/
sofpm
will redirect it toa.com/todos/add-todo/
.If the request comes for
a.com/todos/
so in that case/kameri-app/index.ftd
file should be served. If the request comes fora.com/todos/add-todo/
so in that case/kameri-app/add-todo.ftd
will be served.Case 4: Request for dynamic URL for dependency package
if a request comes for
a.com/mount-b/foob/abrark/
.fpm
will look up into current package sitemap, not found.fpm
will look up the current packagedynamic-urls
, not found.fpm
will look up dependencies and prefixmount-b
will be mactched withb
'smount-point
, So it will look updynamic-urls
of package b. So/mount-b/foob/abrark/
will be mapped to/foob/<string:user>
andpersonb.ftd
will returned.kameri
abrark/FPM.ftd
If a request comes for
ftd
file for a dependency package like/todos/add-todo/
, this mapping should be present in the current package sitemap.api call: /todos/api/add-todo/ redirect to /todos/
In that case, mount-point should be passed to kameri-service in request header
X-FPM-MOUNT-POINT
Beta Was this translation helpful? Give feedback.
All reactions