# Plugin Deployment with base path

**URL:** <https://community.penpot.app/t/plugin-deployment-with-base-path/7602>\
**Category:** Ask the community\
**Tags:** plugins\
**Created:** [January 19, 2025, 10:57pm UTC](https://community.penpot.app/t/plugin-deployment-with-base-path/7602 "2025-01-19T22:57:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![malliaridis](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/malliaridis/32/6866_2.png) [@malliaridis](https://community.penpot.app/u/malliaridis)\
**Post date:** [January 19, 2025, 10:57pm UTC](https://community.penpot.app/t/plugin-deployment-with-base-path/7602/1 "2025-01-19T22:57:00Z")

</div>

Hello everyone,

I recently tried to publish a penpot plugin with a URL base path and failed to correctly configure it. So I went without a base path and used only a subdomain for publishing the plugin.

If I remember correct, I was able to configure it to use and resolve the the plugin.js and manifest.json under the base path, but whenever I accessed the plugin’s index.html by opening the plugin’s UI, it was accessing the index.html without the base path.

So my quesiton is, has anyone managed to publish a plugin with a base path in the URL, like [https://example.com/path/[index.html|manifest.json|plugin.js]](https://example.com/path/%5Bindex.html%7Cmanifest.json%7Cplugin.js%5D)?

---

<div class="post-metadata">

**Author:** ![tank666](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/tank666/32/132_2.png) [@tank666](https://community.penpot.app/u/tank666)\
**Post date:** [January 30, 2025, 7:43pm UTC](https://community.penpot.app/t/plugin-deployment-with-base-path/7602/2 "2025-01-30T19:43:38Z")

</div>

All you need to do to make the plugin files run from the correct subfolder is to specify the full paths to the plugin code in `manifest.json` and the UI file in the `penpot.ui.open()` method.

For example:

```json
// manifest.json
{
  "code": "https://example.com/full/path/to/plugin.js",
  …
}

```

```javascript
// plugin.js
penpot.ui.open(
  'Plugin Name',
  'https://example.com/full/path/to/index.html'
)

```

---

<div class="post-metadata">

**Author:** ![malliaridis](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/malliaridis/32/6866_2.png) [@malliaridis](https://community.penpot.app/u/malliaridis)\
**Post date:** [January 31, 2025, 3:30pm UTC](https://community.penpot.app/t/plugin-deployment-with-base-path/7602/3 "2025-01-31T15:30:46Z")

</div>

Thanks for the info. I did not notice there was a URL param there, but now that you mention it that makes sense. 😁
