-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
refactor: bake redirects from db #3186
Conversation
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
Important Auto Review SkippedAuto reviews are disabled on base/target branches other than the default branch. Please add the base/target branch pattern to the list of additional branches to be reviewed in the settings. Please check the settings in the CodeRabbit UI or the To trigger a single review, invoke the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
f6a80bd
to
5912d1d
Compare
8a375ce
to
3a18f12
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good - if we take care of trailing slashes before we put them into the DB then we can simplify this a bit more even
5912d1d
to
67d13f9
Compare
3a18f12
to
a964c65
Compare
67d13f9
to
90655d5
Compare
a964c65
to
ab451ff
Compare
e8269da
to
3e3b799
Compare
90c76db
to
2785a24
Compare
3e3b799
to
bc90b23
Compare
removed trailing slash processing after cleaning up redirects in a57bcca. |
2785a24
to
71ad893
Compare
f457e85
to
0ab98db
Compare
71ad893
to
e41d3a3
Compare
0ab98db
to
2d639aa
Compare
e41d3a3
to
88727a1
Compare
2d639aa
to
a7f9c83
Compare
Internal redirect resolver
The internal resolver is currently only used for prominent links. The following query reveals some examples of where it might be used:
For instance, in https://ourworldindata.org/ukraine-war
formatWpUrl refactor
This PR also simplifies the formatWpUrl function since none of the paths in redirects contain the "__" string:
--> 0 results