Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix image paths in development mode #5429

Merged
merged 2 commits into from
Nov 24, 2023
Merged

Conversation

robgietema
Copy link
Member

@robgietema robgietema commented Nov 23, 2023

This fix changes how images are fetched from the backend. By default in development mode the images are fetched using the backend url throught the middleware, then ++api++ is added. This url suffix should only be used in either the frontend or in production. When using a different backend which doesn't use the ++api++ suffix this will break otherwise.

Copy link

netlify bot commented Nov 23, 2023

Deploy Preview for volto canceled.

Name Link
🔨 Latest commit 71bd06b
🔍 Latest deploy log https://app.netlify.com/sites/volto/deploys/655f8a88356a86000826455e

@robgietema robgietema requested a review from sneridagh November 23, 2023 17:23
@sneridagh sneridagh merged commit 6e95056 into main Nov 24, 2023
@sneridagh sneridagh deleted the fix-image-paths-dev-mode branch November 24, 2023 19:06
Copy link
Member

@sneridagh sneridagh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

sneridagh added a commit that referenced this pull request Nov 24, 2023
* main:
  Use container from component registry in sitemap component and also refactor the class to functional component(#5418) (#5420)
  Fix image paths in development mode (#5429)
sneridagh pushed a commit that referenced this pull request Nov 25, 2023
sneridagh added a commit that referenced this pull request Nov 30, 2023
* main:
  Move dangling news item to the right place
  Better start script in root package.json, enable and better config for husky/lint-staged
  All in with monorepo (#5409)
  changed toNumber to parseFloat   #5447 (#5448)
  Release 18.0.0-alpha.3
  Changelog
  Revert "Improvements and completeness of the ContentMetadataTags component (#5433)" (#5449)
  Update yarnhook to 0.6.1 in order to support pnpm 8 (#5444)
  Special breadcrumb in controlpanel (#5292)
  Adding extraction of videoID from youtube videos url which contain '/live/' (#5426)
  Release 18.0.0-alpha.2
  Release generate-volto 8.0.3
  Changelog
  Bring back yeoman install which in v5 is deprecated (#5438)
  Improvements and completeness of the ContentMetadataTags component (#5433)
  Use container from component registry in sitemap component and also refactor the class to functional component(#5418) (#5420)
  Fix image paths in development mode (#5429)
  Visible focus semantic UI - reset (#5335)
  Remove mention of LTS in Volto (#4905)
  JSX is now in Pygments (#5412)
sneridagh added a commit that referenced this pull request Nov 30, 2023
* main: (21 commits)
  Cleanup and renaming (#5456)
  Move dangling news item to the right place
  Better start script in root package.json, enable and better config for husky/lint-staged
  All in with monorepo (#5409)
  changed toNumber to parseFloat   #5447 (#5448)
  Release 18.0.0-alpha.3
  Changelog
  Revert "Improvements and completeness of the ContentMetadataTags component (#5433)" (#5449)
  Update yarnhook to 0.6.1 in order to support pnpm 8 (#5444)
  Special breadcrumb in controlpanel (#5292)
  Adding extraction of videoID from youtube videos url which contain '/live/' (#5426)
  Release 18.0.0-alpha.2
  Release generate-volto 8.0.3
  Changelog
  Bring back yeoman install which in v5 is deprecated (#5438)
  Improvements and completeness of the ContentMetadataTags component (#5433)
  Use container from component registry in sitemap component and also refactor the class to functional component(#5418) (#5420)
  Fix image paths in development mode (#5429)
  Visible focus semantic UI - reset (#5335)
  Remove mention of LTS in Volto (#4905)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants