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-urlsin FPM.ftd, handling for current packagedynamic-urlsin FPM.ftd, handling for foreign packageFollow: #311
PR: Refactor
PR: Refactor
PR: Code
PR: Issue Fixed
dynamic-urlsin 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
fpmis serving packagea.com.Case 1: Request for Current Package
ftdDocumentIf the request comes for
/foo/arpita/,fpmwill look up the current packagesitemapand serve it.Case 2: Request with dynamic parameters for Current Package
If the request comes for
/foo/abrark/,fpmwill look upsitemapit will not be matched, then it will look up infpm.dynamic-urlsand it will be matched and returnperson.ftdfile.Case 3: Request for dependency package
ftdDocumentIf 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/sofpmwill redirect it toa.com/todos/add-todo/.If the request comes for
a.com/todos/so in that case/kameri-app/index.ftdfile should be served. If the request comes fora.com/todos/add-todo/so in that case/kameri-app/add-todo.ftdwill be served.Case 4: Request for dynamic URL for dependency package
if a request comes for
a.com/mount-b/foob/abrark/.fpmwill look up into current package sitemap, not found.fpmwill look up the current packagedynamic-urls, not found.fpmwill look up dependencies and prefixmount-bwill be mactched withb'smount-point, So it will look updynamic-urlsof package b. So/mount-b/foob/abrark/will be mapped to/foob/<string:user>andpersonb.ftdwill returned.kameri
abrark/FPM.ftd
If a request comes for
ftdfile 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-POINTBeta Was this translation helpful? Give feedback.
All reactions