# Running RDepot on a prefix

**URL:** <https://support.openanalytics.eu/t/running-rdepot-on-a-prefix/2688>\
**Category:** RDepot\
**Created:** [December 19, 2023, 9:19am UTC](https://support.openanalytics.eu/t/running-rdepot-on-a-prefix/2688 "2023-12-19T09:19:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard\_Nemeth](https://support.openanalytics.eu/user_avatar/support.openanalytics.eu/richard_nemeth/32/919_2.png) [@Richard\_Nemeth](https://support.openanalytics.eu/u/Richard_Nemeth)\
**Post date:** [December 19, 2023, 9:19am UTC](https://support.openanalytics.eu/t/running-rdepot-on-a-prefix/2688/1 "2023-12-19T09:19:42Z")

</div>

Hi

I’d like to run RDepot on a URI prefix. Currently, the application is assumed to be served from the root `/`, but for our use case, it would be quite preferable to serve it f.e. at `http://localhost/rdepot` instead. (We’re using Kubernetes, but essentially it’s the same thing as docker-compose locally)

The setup I’m trying to go for is to have the application at /rdepot/app and the repo at /rdepot/library.

I was able to set the `server.servlet.context-path=/rdepot/app`, which seems to have done the trick, but not completely. Some of the references in the static HTML files point to `/webjars` instead of `/rdepot/app/webjars`. Is there any way to add the prefixes to all these static resources dynamically?

The repo application does not seem to be an issue and I can install packages from `/rdepot/library` perfectly fine. It’s just the front-end visuals that are fairly broken.

Currently, the only way I can see is to fork RDepot, update all the HTML static files, and build our version with corrected references in the HTML files. I’d really like to avoid that, so if there’s any suggestion on how to achieve this without forking, much appreciated 🙂

---

<div class="post-metadata">

**Author:** ![tverbeke](https://support.openanalytics.eu/letter_avatar_proxy/v4/letter/t/d9b06d/32.png) [@tverbeke](https://support.openanalytics.eu/u/tverbeke)\
**Post date:** [December 21, 2023, 1:55pm UTC](https://support.openanalytics.eu/t/running-rdepot-on-a-prefix/2688/2 "2023-12-21T13:55:40Z")

</div>

Hi @Richard_Nemeth,

Thank you for your message. We will shortly release a new version of RDepot with the requested feature. I will report back when it is released. Stay tuned!

Best,  
Tobias

---

<div class="post-metadata">

**Author:** ![tverbeke](https://support.openanalytics.eu/letter_avatar_proxy/v4/letter/t/d9b06d/32.png) [@tverbeke](https://support.openanalytics.eu/u/tverbeke)\
**Post date:** [January 5, 2024, 9:36pm UTC](https://support.openanalytics.eu/t/running-rdepot-on-a-prefix/2688/3 "2024-01-05T21:36:18Z")

</div>

Hi @Richard_Nemeth,

The new version (1.7.6) of RDepot is available at

[https://rdepot.io/latest/downloads/#v176](https://rdepot.io/latest/downloads/#v176)

It includes the new feature allowing to configure a URL context path, see the [documentation](https://rdepot.io/latest/documentation/administration/configuration/#url-context-path).

Happy New Year!

Kind regards,  
Tobias

---

<div class="post-metadata">

**Author:** ![Richard\_Nemeth](https://support.openanalytics.eu/user_avatar/support.openanalytics.eu/richard_nemeth/32/919_2.png) [@Richard\_Nemeth](https://support.openanalytics.eu/u/Richard_Nemeth)\
**Post date:** [January 5, 2024, 10:18pm UTC](https://support.openanalytics.eu/t/running-rdepot-on-a-prefix/2688/4 "2024-01-05T22:18:20Z")

</div>

Hi Tobias

That’s incredible news, thank you so much for making this work! 🙂 I can see it wasn’t a small change, so very much appreciated!

Happy New Year!

/Richard
