feat: Add option for a noindex meta tag on the HTML index page #1531
No reviewers
Labels
No labels
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
Wont fix
old/ci/cd
old/rust
No milestone
No project
No assignees
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/continuwuity!1531
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "s1lv3r/continuwuity:1527-prevent-search-engine-indexing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds a new config option
index_page_allow_indexingwhich defaults to false.Fixes: !1527
News-fragment is TODO
Pull request checklist:
mainbranch, and the branch is named something other thanmain.myself, if applicable. This includes ensuring code compiles.
Feel like this is going to have some conflicts with #1484 but otherwise looks good
Hm yeah, you might be right.. Unsure what the best way to solve it is, possibly make this PR based on that one instead and wait for it to be merged first? Alternatively the changes are smallish, so wouldn't be too difficult to update that one if this gets merged first.
cc. @ginger, you might have feedback here?
You can probably make a pull request against ginger's branch so it gets merged in there. Not sure if you can edit this one though
I'm able to change the target of this one, gimme a sec + time to fix conflicts
@ -111,4 +111,1 @@"base_url": "https://matrix.example.com/"},"org.matrix.msc3575.proxy": {"url": "https://matrix.example.com/"This doesn't seem related?
i believe its due to changing the target branch, this one is technically ahead of ginger/password-reset. I'm working on rebasing but its taking a sec, will likely be fixed when i push an updated branch
Yep. Three commits ahead
15a8cfe3d18575d8f3ff8575d8f3ffded23b56acIt doesn't error anymore, but I was unable to find a way to avoid specifying
allow_indexingon every template. A solution likeconduwuit_build_metadata::version_tag()won't work as these return static values from what i can see, andservices.config.index_page_allow_indexingis dynamic.I need to take a look at this to see if there's a way to not pass
allow_indexingto every template@ -1802,0 +1802,4 @@# Allow or disallow search engine crawling by adding# `<meta name="robots" content="noindex" />` to the index page.##index_page_allow_indexing = falseThis option is weirdly named, since it applies to all pages, not just the index
That's a good point, will update to
allow_web_indexingonce I'm on my pc@ -2094,2 +2094,4 @@pub force_disable_first_run_mode: bool,/// Allow or disallow search engine crawling by adding/// `<meta name="robots" content="noindex" />` to the index page.this doc comment is still incorrect :(
52b36f3ff282ad7515ce