IATI / D-Portal

http://d-portal.org/
Other
30 stars 23 forks source link

D-portal colour glitch #637

Closed amy-silcock closed 2 years ago

amy-silcock commented 2 years ago

The following e-mail was received by a d-portal data user:

Dear IATI Support,

I’m guessing this is a slight glitch in the new deployment of d-portal, but I notice the colour scheme of d-portal is different depending on the URL.

Here it has a background image and the normal white text on black:

https://d-portal.org/ctrack.html?country_code=AF&reporting_ref=XM-DAC-41121#view=act&aid=XM-DAC-41121-2021-ASO-AFG

image

And here it is with black text on white:

image

https://d-portal.org/q.html?aid=XM-DAC-41121-2021-ASO-AFG

I got that after clicking on the link after “IATI IDENTIFIER” (something I often do to get share a clean URL to the activity).

I’ve tested this in Firefox and Edge with the same results.

amy-silcock commented 2 years ago

It appears that the same glitch appears when you click on an activity link under 'related activities'.

notshi commented 2 years ago

Thanks, @amy-silcock the fix should now be live.

The clean URL has been updated to a SAVi url. Anything with 'q' is a query so it returns an unstyled html page as it is built server-side.

This change is part of the streaming option where all the output from d-portal is now using the same generation; previously it was separate for each endpoint and there were a few endpoints.

The updated urls are, for example:

https://d-portal.org/savi/?aid=XM-DAC-41121-2021-ASO-AFG for an activity https://d-portal.org/savi/?pid=XM-DAC-41121 for an organisation

Below are all the instances where the urls have been changed:

@iati-identifier
@organisation-identifier
transaction > provider-org@provider-activity-id
transaction > receiver-org@receiver-activity-id
participating-org > @activity-id
related-activity > @ref

If we missed any links, do let us know.

amy-silcock commented 2 years ago

Thanks @notshi,

I've tested the links all the above links are working for me. The planned-disbursement activity-id is also working as expected.