Developer forum

Forum » Dynamicweb 10 » Gets wrong page when have 2 shop pages

Gets wrong page when have 2 shop pages

Andreas Rundgren
Reply

Hi,

We have a swift text which has this button url: Model.Item.GetButton("FirstButton").Link.Url;

I have the link to a product group.

 


My 2 shop pages. One for productlist and one for product search

But now because i have 2 "Shop" itemtype pages (one for products and one for the search because different layouts). It gets the url to the product search page even it is "hidden in menu" and have navigationtag: ProductListSearch

How can it get the search page in my button url when it not is the "primary" shop and dont have navigation tag shop? 

Regards
Andreas


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

You have published all shop URLs to both the "Products" node and the "Products search" node. Do you need the URLs on the products search page?

So if you remove the URL provider from your search page:

Then your urls would resolve as you expect.

 

You must be logged in to post in the forum