alphagov / govuk-browser-extension

Chrome and Firefox extension for developers working on GOV.UK.
22 stars 5 forks source link

Adds contextual info when transforming links based on environment #135

Closed ChrisBAshton closed 4 years ago

ChrisBAshton commented 4 years ago

I was previewing a piece of content on the draft stack when I used the extension to view the content item. I was confused that this took me to the live content item on GOV.UK, rather than the content item on integration that I wanted.

Then I realised (when I navigated to the integration content item) that it didn't contain the content I expected - and that's because the content was still in draft, not published. I now understood why the extension was unable to link me to the content store environment I wanted - it doesn't exist.

Have now added some contextual information only when we override the origin we redirect people to.

Before:

Screen Shot 2019-10-18 at 13 58 21

After

Screen Shot 2019-10-18 at 13 31 47

cbaines commented 4 years ago

Then I realised (when I navigated to the integration content item) that it didn't contain the content I expected - and that's because the content was still in draft, not published. I now understood why the extension was unable to link me to the content store environment I wanted - it doesn't exist.

I don't quite follow what you mean here by "content store environment". We have draft and live content stores in all environments.

ChrisBAshton commented 4 years ago

Oh - I'd totally misunderstood! Have checked and indeed can see the draft content store item. Not sure why I couldn't see it before.