Developer forum

Forum » Dynamicweb 10 » dwapi/content/pages/url?url=%2Fcontact returns 404

dwapi/content/pages/url?url=%2Fcontact returns 404

Joakim Sjöbäck
Reply

Im trying to get the page data via  url(testing on https://dw10swift.public9.dynamicweb.dk/)

/contact is a published page on the site

https://dw10swift.public9.dynamicweb.dk/dwapi/content/pages/url?url=%2Fcontact

but it returns 404. Afaik the only required param is URL yet it returns 404. 

What might I be doing wrong?

Thanks,


Replies

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

It works now.
You need to add the domain to the website in DW.

 
Joakim Sjöbäck
Reply

Yes now it works. Was it a fix?

Im trying to achieve the same on my local dw 10.0.26 installation(running on localhost)

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply
This post has been marked as an answer

Votes for this answer: 1
 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

I can add that this is behavior needed to find the right URL index - as there can be more than one /contact if you have i.e. 2 websites both with a /contact page.

 

You must be logged in to post in the forum