mystiker / webmud3

Webmud3: third generation of the UNItopia Webmud as open source project.
GNU General Public License v3.0
1 stars 0 forks source link

Re implement BASE_HREF in backend and frontend #39

Open myonara opened 4 weeks ago

myonara commented 4 weeks ago

Before the refactoring the backend and frontend could be served as a subdirectory within a domain, three examples:

In the frontend it was done with either manual entry and reeplacement of BASE_HREF in the index.html (in the beginning of the project) or a base_href service, which detects the right prefix/configuration from the current path (current master branch).

mystiker commented 5 days ago

Changing the base-href in index.html from "/" to "./" should work 99% of the time. Have a look at

https://angular.dev/guide/routing/common-router-tasks and https://symflower.com/en/company/blog/2021/path-independent-angular/

Lets try this. We can fall back to adding the path during build via the --base-href flag, if we encounter issues.