-
I am using HPM to serve a website. The original website is under the URL https://staging.store.com And my instance of HPM is under the URL https://staging2.store.com I am proxying all connections from staging2 to staging and it works. However, when I click on any link on the website in What can I do to solve this? |
Beta Was this translation helpful? Give feedback.
Answered by
chimurai
Apr 9, 2022
Replies: 1 comment 3 replies
-
If you have absolute links in the html responses. You can rewrite them with https://github.com/chimurai/http-proxy-middleware/blob/master/recipes/response-interceptor.md |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
skhaz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you have absolute links in the html responses. You can rewrite them with
responseInterceptor
to transparent links (without protocol + host)https://github.com/chimurai/http-proxy-middleware/blob/master/recipes/response-interceptor.md