Expand my Community achievements bar.

SOLVED

How to save the host in the link during url mapping?

Avatar

Former Community Member

Hi.

What should I do to save the host during url mapping?

For example, I have link on the page: http://localhost:4502/content/geometrixx/en.html. I need it to be http://localhost:4502/en.html.

In Jcr Resource Resolver I have Url Mapping: /content/geometrixx/</. But it produces the link without the host. I get only /en.html.

Could anyone help me, please?

Thanks in advance.

1 Accepted Solution

Avatar

Correct answer by
Level 6

You should, as much as possible, use relative linking and relative resolving. It should not matter if it is on admin.mysite.com, acc-admin.mysite.com or www.mysite.com or acc-www.mysite.com. Everyone should resolve to the same node. So IMHO, you are doing it the right way.

 

/Ove

View solution in original post

1 Reply

Avatar

Correct answer by
Level 6

You should, as much as possible, use relative linking and relative resolving. It should not matter if it is on admin.mysite.com, acc-admin.mysite.com or www.mysite.com or acc-www.mysite.com. Everyone should resolve to the same node. So IMHO, you are doing it the right way.

 

/Ove