Skip to content

Adding relative path to microfe crud service #560

Closed Answered by epessina
rmuller-vu asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @rmuller-vu , sorry for the late reply.

URLs in back-kit components are computed relative to the page's origin (i.e., new URL(path, window.location.origin)) so they cannot consider any prefix.

Possible solutions that come to my mind are:

  • duplicating the configuration to add the prefix
  • try and leverage API Gateway to rewrite calls from public-host/v2/version-approvals to public-host/prefix/v2/version-approvals
  • making a custom web component

Let me know if you need further clarification

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rmuller-vu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants