Assets broken after moving installation to subdomain

Hey guys,

I setup a Discourse instance on DigitalOcean using the discourse_docker repo. For the first few weeks we had it running at the root of our domain, but have since moved to a subdomain, which we should have done from the start.

Everything seems to be working fine, with the exception of uploaded assets. All images still reference //example.com/uploads/... instead of //foo.example.com/uploads/...

This isn’t the end of the world as I’m going to be sending all assets to S3 within the next few days, but fixing the existing assets would be nice.

Thanks to anyone who can help out!

EDIT: Just noticed that Discourse.BaseUrl still reflects the root domain. This is likely what’s causing the issue?

1 Like

Beware, s3 support (except for backups) is slated for removal in the current beta, 1.3.

1 Like

Thanks for the heads up!

Hello there, can I get link to a guide to do this?

A guide to do what exactly?

To move from example.com to forum.example.com.

is still relevant.

1 Like

I no longer run the forum that I initially did this on, but I’ll try and remember and get back to you. Sorry this answer isn’t helpful at the moment.

1 Like

Thanks, will try this out and let you know how it goes.

Thanks you have been of help.