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

Emit a proper URL for the Plone root in a listing #5263

Merged
merged 2 commits into from Oct 3, 2023

Conversation

tiberiuichim
Copy link
Contributor

Not that I think there's any valid use case for it, but at least we avoid a nasty warning

@netlify
Copy link

netlify bot commented Oct 3, 2023

Deploy Preview for volto canceled.

Name Link
🔨 Latest commit 2fc0f18
🔍 Latest deploy log https://app.netlify.com/sites/volto/deploys/651c0610ca48520008a3d47f

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.

Shouldn't be

url = '/'

@tiberiuichim
Copy link
Contributor Author

@sneridagh The whole "Plone object appears in a listing" scenario is weird in itself.

But if we take only what's actually treated in code, the empty @id, you can easily say "if you don't have a path, you're equal to the publicURL". And the / root is not a valid location for the root of your Plone/Volto website, as you may now host it on a prefixed path.

@sneridagh sneridagh merged commit 6280cd3 into main Oct 3, 2023
49 checks passed
@sneridagh sneridagh deleted the ploneroot_universallink branch October 3, 2023 15:45
sneridagh added a commit that referenced this pull request Oct 11, 2023
* main:
  Release 17.1.0
  move the function to get the lead image sizes to the block configuration (#5289)
  Removed default aspect-ratio from Image component (#5278)
  Added support for `blocksConfig` configuration in the listing block (#5310)
  fix: logo and login storybook (#5286)
  Refactor Logo component to improve the conditional link to the root (#5280)
  Fix hierarchy of readme headings
  Clean up readme and install docs (#5287)
  Add note in release notes for Volto 17 final (#5281)
  Update webpack-bundle-analyzer (#5283)
  Upgrade @plone/scripts to 3.0.1 (#5282)
  Release @plone/scripts 3.0.1
  Update translate pt-br label_my_email_is (#5217)
  Emit a proper URL for the Plone root in a listing (#5263)
  Storybook Header (#5085)
  Fix error: no such file or directory, open 'addon-testing-project/jsconfig.json' in addon clone command (#5245)
  Ensure .gitignore gets copied when running `yo @plone/volto-addon` (#5258)
  Make prettier checks .js in root and cypress folder (#5260)
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.

None yet

2 participants