codeforcroatia / popravi.to

This is popular map-based reporting platform FixMyStreet for Croatia named "Popravi.to"
http://popravi.to
Other
9 stars 7 forks source link

Fix links to other FMS sites in Open311 API reponse (API configuration) #171

Closed schlos closed 2 years ago

schlos commented 2 years ago

Describe the bug

https://popravi.to/open311/v2/discovery.xml?jurisdiction_id=popravito

shows:

<type>production</type>
<url>http://www.fiksgatami.no/open311</url>

also:

<type>test</type>
<url>http://fiksgatami-dev.nuug.no/open311</url>

Coming from: https://github.com/codeforcroatia/popravi.to/blob/develop/perllib/FixMyStreet/App/Controller/Open311.pm#L106

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

See example of FMS: https://www.fixmystreet.com/open311/v2/discovery.xml?jurisdiction_id=fixmystreet

Screenshots

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

schlos commented 2 years ago

How to contribute? Read our contribution guidelines at https://codeforcroatia.org/popravito-contribution-guidelines.

schlos commented 2 years ago

Fixed as per https://github.com/mysociety/fixmystreet/blob/master/perllib/FixMyStreet/App/Controller/Open311.pm#L158