Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

Anonymous
Not applicable

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
Ove_Lindström
Correct answer by
Level 6
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
Ove_Lindström
Correct answer by
Level 6
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