#2575 closed defect (bug) (fixed)
Codex: #dotorgredirect does not redirect to Rosetta sites
Reported by: | SergeyBiryukov | Owned by: | Otto42 |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Codex | Keywords: | |
Cc: |
Description (last modified by )
I'm trying to redirect an old "Forum rules" page on Codex to a new page on the forums.
The #dotorgredirect
directive is used for redirecting pages to developer.w.org, so I thought this would work:
{{#dotorgredirect:https://ru.wordpress.org/support/forum-rules/}}
However, it just displays "Invalid Redirect" on the page.
Is there a whitelist in the redirect script? Could we add forums to that list?
Change History (21)
#3
@
7 years ago
- Owner set to dd32
- Status changed from new to accepted
Just to note, the plugin only allows redirects to the following hostnames:
- developer.wordpress.org
- make.wordpress.org
I don't see any harm in allowing *.wordpress.org
/ wordpress.org
myself though.
Any thoughts from anyone as to why it's as it is? @otto42?
#4
follow-up:
↓ 5
@
7 years ago
I wrote it that way because that's the way I was told to write it. No other reason. It was originally intended only for redirection of moved documentation. It can be expanded in scope if needed.
#5
in reply to:
↑ 4
;
follow-up:
↓ 6
@
6 years ago
Replying to Otto42:
It was originally intended only for redirection of moved documentation. It can be expanded in scope if needed.
With the Systems request deployed, I thought a redirect to https://ru.wordpress.org/support/forum-rules/
would now work, but still getting an "Invalid Redirect" error.
Apparently Rosetta domains like *.wordpress.org
are still not whitelisted, only the main domain is?
#6
in reply to:
↑ 5
;
follow-up:
↓ 8
@
6 years ago
Replying to SergeyBiryukov:
Replying to Otto42:
It was originally intended only for redirection of moved documentation. It can be expanded in scope if needed.
With the Systems request deployed, I thought a redirect to
https://ru.wordpress.org/support/forum-rules/
would now work, but still getting an "Invalid Redirect" error.
Apparently Rosetta domains like
*.wordpress.org
are still not whitelisted, only the main domain is?
Correct. Only wordpress.org
was added.
#8
in reply to:
↑ 6
@
6 years ago
Replying to dd32:
Correct. Only
wordpress.org
was added.
Thanks! While we're at it, could we add *.wordpress.org
then? I tried looking into it myself, but apparently the plugin is not in the dotorg repo.
This ticket was mentioned in Slack in #meta by sergey. View the logs.
5 years ago
#10
@
5 years ago
- Summary changed from Codex: #dotorgredirect does not redirect to forums to Codex: #dotorgredirect does not redirect to Rosetta sites
#12
@
5 years ago
Okay, I added wordpress.org in deploy:8223 but forgot about *.wordpress.org. I'll make that change shortly too.
#13
follow-up:
↓ 14
@
5 years ago
Change made to deploy revision 8740. It will accept wordpress.org and *.wordpress.org. It was also send 301's for the redirects instead of 302's.
#14
in reply to:
↑ 13
;
follow-up:
↓ 18
@
5 years ago
Replying to Otto42:
Change made to deploy revision 8740. It will accept wordpress.org and *.wordpress.org.
Thanks! Is it deployed yet? Still getting "Invalid Redirect" for this:
{{#dotorgredirect:https://ru.wordpress.org/support/forum-rules/}}
This ticket was mentioned in Slack in #meta by sergey. View the logs.
5 years ago
This ticket was mentioned in Slack in #forums by sergey. View the logs.
4 years ago
This ticket was mentioned in Slack in #meta by sergey. View the logs.
4 years ago
#18
in reply to:
↑ 14
;
follow-up:
↓ 19
@
4 years ago
- Resolution set to fixed
- Status changed from assigned to closed
Replying to SergeyBiryukov:
{{#dotorgredirect:https://ru.wordpress.org/support/forum-rules/}}
This seems to be working for me now.
This is based on a whitelist. @Otto42 should be able to help here.