How resolve urls for different environments

Tomasz Czado asked on April 3, 2019 10:08

Hi, I have a custom page type with url selector used on one of the field. The problem is that when i choose one of the page, control returns absolute url that contains domain. When I move site into different environment, that will be a problem since domain will be incorrect. Is there a way to get urls without domain? So they starts with "/" or "~/"?

Recent Answers


Roman Hutnyk answered on April 3, 2019 10:27

Tomasz, I think you need to navigate Page Type -> Fields -> select the field you're talking about -> expand Editing control setting and make sure Use relative URL in Content tab section is checked.

0 votesVote for this answer Mark as a Correct answer

Tomasz Czado answered on April 3, 2019 10:33

I tried that before and that doesn't work. No matter what settings I have, I always get urls like this: - https://domain.mvc/en-us/about - https://domain.mvc/en-us/~about

0 votesVote for this answer Mark as a Correct answer

Roman Hutnyk answered on April 3, 2019 10:47

Does it add domain right when you select a page or after you save it?

0 votesVote for this answer Mark as a Correct answer

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