Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Site baseUrl #10349

Open
rymsha opened this issue Dec 1, 2023 · 1 comment
Open

Site baseUrl #10349

rymsha opened this issue Dec 1, 2023 · 1 comment
Assignees
Labels
Milestone

Comments

@rymsha
Copy link
Contributor

rymsha commented Dec 1, 2023

Site baseUrl stored in siteConfig under "system" application key: com.enonic.xp.site

"data": {
    "siteConfig": [
      {
        "applicationKey": "com.enonic.xp.site",
        "config": { "baseUrl": "https://www.example.com:8443/my-site" }
        ...

Can be used for various purposes, similar to how html <base> element used for, but on backend. (although domain part is always required)

  • generation of sitemap.xml links
  • links in emails
  • links in rss
  • pageUrl generation when not is scope of request (?)

Examples of baseUrl:

https://www.example.com:8443/my-site

www.example.com (equivalent to //www.example.com)

www.exaple.com/my-site (equivalent to //www.example.com/my-site)

http://www.example.com

http://www.example.com:8080

https://www.example.com:8443

https://enonic.atlassian.net/wiki/spaces/TD/pages/2743304247/Site+base+URL

@rymsha rymsha added the Feature label Dec 1, 2023
@rymsha rymsha added this to the 8.0.0 milestone Dec 1, 2023
@rymsha
Copy link
Contributor Author

rymsha commented Dec 1, 2023

When implemented, CS should be adjusted to ignore com.enonic.xp.site applicationKey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants