⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@Elia-Darwish
Copy link
Contributor

Summary

  • Normalize baseURL by stripping trailing slashes before URL concatenation in functions that build asset URLs
  • Prevents double slashes (e.g., https://cdn.img.ly/.../gpt-image-1//thumbnails/...) when users provide a baseURL with a trailing slash

Affected Files

Plugin File Function
plugin-ai-generation-web renderStyleTransferProperty.ts getDefaultStyles()
plugin-ai-image-generation-web GptImage1.styles.ts createStyleAssetSource()
plugin-ai-image-generation-web ChangeStyleLibrary.ts createStyleAssetSource()
plugin-cutout-library-web plugin.ts addCutoutAssetLibraryEntry(), addCutoutAssetSource()

Test Plan

  • Verify AI Editor UI demo (showcases-app) Photo tab loads style thumbnails correctly
  • Test with custom baseURL that includes trailing slash
  • Verify cutout library assets load correctly

🤖 Generated with Claude Code

Normalize baseURL by stripping trailing slashes before URL concatenation
in functions that build asset URLs. This prevents double slashes when
users provide a baseURL with a trailing slash.

Affected plugins:
- plugin-ai-generation-web (renderStyleTransferProperty.ts)
- plugin-ai-image-generation-web (GptImage1.styles.ts, ChangeStyleLibrary.ts)
- plugin-cutout-library-web (plugin.ts)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Jan 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
eachlabs-demo Error Error Jan 21, 2026 2:23pm
plugins-bytedance Ready Ready Preview, Comment Jan 21, 2026 2:23pm
plugins-web Ready Ready Preview, Comment Jan 21, 2026 2:23pm

Request Review

@mirko314
Copy link
Contributor

Closed in favor of internal PR

@mirko314 mirko314 closed this Jan 23, 2026
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