content icon indicating copy to clipboard operation
content copied to clipboard

Update rgba redirects

Open FormularSumo opened this issue 6 months ago • 1 comments

Following on from https://github.com/mdn/content/pull/31827, I've updated a couple of redirects to headings in color_value that no longer exist - https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#rgb()_and_rgba() to redirect to the rgb sub-article https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/rgb

I think doing this should close https://github.com/mdn/content/issues/30844 as there are no remaining outdated uses of rgba/hsla otherwise

FormularSumo avatar Feb 08 '24 11:02 FormularSumo

Hi @FormularSumo, thanks for taking this project closer to completion.

For this change, could you confirm that you updated the redirect using the yarn content move command? Thanks

dipikabh avatar Feb 10 '24 01:02 dipikabh

I did not use yarn commands when doing this, I didn't realise they existed. I've reverted my commit locally and tried to carry out this fix using yarn, however I don't think it's possible to. When using yarn content move on these two redirects it says error: document for /en-US/docs/Web/CSS/color_value#rgb()_and_rgba() does not exist (and the same error if I use /en-US/docs/CSS/rgb or /en-US/docs/Web/CSS/rgb instead), which is the problem I'm trying to solve. I've tried using yarn content add-redirect as well but that resulted in error: Invalid URL I think caused by the same issue.

Even if either of those commands did work it wouldn't be an ideal solution, redirecting an outdated redirect through another redirect. It seems to me that we just want to update where these two redirects point to. Do you have any idea how this might be done using yarn, or if it is possible for changes to be made not using yarn in situations like this?

FormularSumo avatar Feb 19 '24 23:02 FormularSumo

@FormularSumo looks like the same fix got in via https://github.com/mdn/content/pull/32295. Sorry for the trouble 🙁 (I'll close this one as a duplicate).

if it is possible for changes to be made not using yarn in situations like this?

I haven't come across such a situation and we do recommend to not edit the _redirects.txt file manually. I expected yarn content add-redirect /en-US/path/of/deleted/page /en-US/path/of/target/page to work in this case. 🤷‍♀️

dipikabh avatar Feb 20 '24 17:02 dipikabh

Duplicate of https://github.com/mdn/content/pull/32295

dipikabh avatar Feb 20 '24 17:02 dipikabh