-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
some redirected/renamed node URLs broken #802
Comments
|
However this returns 100 records:
so... there are a lot of them. 223, to be exact:
I put them here: https://publiclab.org/redirects.txt |
They indeed include: "REDIRECT-notes/liz/8-3-2011/infrared-balloon-image-reveals-gowanus-plume-0.9933278192862228" but nothing by hunter (the second broken link). |
I wonder if there's an issue with legacy users, since https://publiclab.org/profile/hunter also doesn't load. Maybe recent changes haven't accounted for unmigrated users. Maybe we should just auto-migrate all users who have content or comments. |
We can run |
Doing that for Hunter fixed https://publiclab.org/notes/hunter/7-19-2012/irvs-timelapse. Great. |
this is now done for all the prior listed uids. |
Added a test for the redirection -- and noticed that many redirect records have a |
Redirects with no path: |
OK -- migrated. Now: https://publiclab.org/notes/liz/8-3-2011/infrared-balloon-image-reveals-gowanus-plume leads to https://publiclab.org/notes/liz/8-3-2011/ir-reveals-gowanus-plume https://publiclab.org/notes/warren/2-14-2012/ultraviolet-spectroscopy-test-350nm leads to https://publiclab.org/notes/warren/2-14-2012/ultraviolet-spectroscopy-testing This works and redirection is tested now here: #809 |
What happened just before the problem occurred
I wanted to go to:
https://publiclab.org/notes/liz/08-03-2011/infrared-balloon-image-reveals-gowanus-plume
But I found that the post only exists now at:
https://publiclab.org/notes/liz/8-3-2011/ir-reveals-gowanus-plume
This page is also possibly broken: https://publiclab.org/notes/hunter/7-19-2012/irvs-timelapse
We used to use redirect records to allow multiple URLs to point to (redirect to) the same node. What I believe is happening is that the redirect records are not working anymore? Also see removal of the legacy DrupalUrlRedirect system in #73 -- specifically this comment: #73 (comment)
This could also relate to more recent wiki path issues in #697.
Update: according to the comment above, some nodes in the pre-
friendly_id
db should be findable with:DrupalNode.find_all_by_path 'DUPLICATE'
and some marked as redirects with their type asredirect|<nid>
. We should scan the old database for these and fix any -- and confirm they include the broken post above.The text was updated successfully, but these errors were encountered: