CurrentDocument.AbsoluteURL not rendering https for all secondary languages

Dominic Carvalho asked on August 22, 2018 09:32

Hey, I am getting a url for the current page by saying CurrentDocument.AbsoluteURL

In my default language it gives me https://www.URL.com

In all my other languages it is only giving me http://URL.com . So their is no https or www.

Any idea why this would be happening ?

Kind Regards

Dominic

Recent Answers


Dawid Jachnik answered on August 22, 2018 09:47 (last edited on August 22, 2018 09:47)

Hey, it's because CurrentDocument.AbsoluteURL is getting protocol, domain from the current request.

if you enter the page from http://URL.com you will see the same in macro, but if you enter the page from https://URL.com you will see the same.

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on August 22, 2018 12:32

As addition you could enforce https for (all) pages by updating the security settings tab on the Root page:

Image Text

By default all lower pages have this setting set to inherit from parent.

For the domain prefix you could update the "process domain prefix" setting to always use one or the other:

Image Text

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.