Hi all,
In my publisher and dispatcher the {{siteUrl}} value I get is //content/sites/blogs/en.html instead of /content/sites/blogs/en.html. Because of this all my links go to https://content/sites/blogs/en.html and gives me an error.
I want to understand from where is it's value getting picked? I don't have much understanding of hbs.
Thanks in advance.
Views
Replies
Total Likes
Couple of pointers to debug:
Agree with Gaurav - this sounds like something is not configured properly.
Thanks for you reply. But this hasn't resolved the issue.
I checked all the /content/sites and /content/sites/blogs node properties/configuration and still couldn't understand from where is that {{siteUrl}} getting it's value.
I did find cq:IsCommunitySite and it's value is set to true. Also siteRoot is empty. But siteId value is getting picked from here itself, I have changed and rechecked it.
I am attaching the screenshot of my configuration.
Could you try to configure siteRoot and see if that gets picked up as siteUrl or check if siteUrl = SiteRoot + urlName
or
create a new property siteUrl similar to siteId and pass on a value in it and test.
That may or may not work but my concern is it shows me correct URL in my local publisher and QA publisher but incorrect URL(i.e //content/sites/blogs/en.html, extra '/') in staging publisher and dispatcher.
I may not be able to help you with that except sharing the fact that double slashes (//) are appended when you want share the url that is protocol independent.
If this works fine for you in QA publish but not in STAGE publish then probably, HTTPS related configurations enabled either at AEM server level or in the Communities configuration or at apache which is the root cause. You may want to debug further in those specific configurations.
HTH
please check if you have externalizer or context path set differently on STAGE publish than QA publish where its working fine.