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

dispatcher replacing relative url with publisher url

Avatar

Level 1

Hi Team,

We have dispatcher installed for our project and we are able to access end user pages using dispatcher URL's 

Within in our home page we have horizontal navigation component which points links to other pages.

Like below

<li class="items item-1">
                                    <a class="mainmenu-link" href="/myproject/en/logged-in/product-catalog.html">Home</a></li>

<li class="items item-1">
                                    <a class="mainmenu-link" href="/myproject/en/logged-in/product-catalog.html">News</a></li>

<li class="items item-1">
                                    <a class="mainmenu-link" href="/myproject/en/logged-in/product-catalog.html">About</a></li>

 

Here within href we are keeping only relative path of the page so that it should work in any environment.

These links are working fine on publish and author environments with relative paths.

But when we are accessing the same pages with dispatcher URL all these navigation relative paths are replaced with the actual full publish URL like below.

 

<li class="items item-1">
                                    <a class="mainmenu-link" href="http://<<publisher domain>>:4703/myproject/en/logged-in/product-catalog.html">Home</a></li>

<li class="items item-1">
                                    <a class="mainmenu-link" href="http://<<publisher domain>>:4703/myproject/en/logged-in/product-catalog.html">News</a></li>

<li class="items item-1">
                                    <a class="mainmenu-link" href="http://<<publisher domain>>:4703/myproject/en/logged-in/product-catalog.html">About</a></li>

 

Even font icons are also not loading with dispatcher URL in pages.

Please help me to resolve this issue. Let me know what is the issue here.

Thanks in advance.

Thanks & Regards

Gayathri

0 Replies

Avatar

Level 3

Can you provide dispacther.any and httpd.conf files?

Avatar

Level 1

So you mean this problem is with dispatcher level?. or from our code?.

Avatar

Level 7

Just to make me sure. You are using inside your code some path like: /content/myproject/en and this is replaced at dispatcher level adding domain and port?

It's important to know if you have some mapping inside Resource Resolver factory configuration.

Let us know.