On page load, check for hash in window location and update input with hash value if present.
NOTE: This doesn't implement the same value regex test that ?u=url implementation does.
Implementation drawbacks to consider
If Cobalt happens to use hash values later on (i.e. navigating to an open settings page or specific point in changelog), this would need to be revised to handle those cases.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/imputnet/cobalt/pull/246
**Author:** [@jojobii-arks](https://github.com/jojobii-arks)
**Created:** 11/13/2023
**Status:** ❌ Closed
**Base:** `current` ← **Head:** `jojobii-arks/245-hash-prefill`
---
### 📝 Commits (1)
- [`d546569`](https://github.com/imputnet/cobalt/commit/d5465699e86b6e3cc7f9a1f7d4805ed8735565e5) feat: input prefill with location hash
### 📊 Changes
**1 file changed** (+14 additions, -0 deletions)
<details>
<summary>View changed files</summary>
📝 `src/front/cobalt.js` (+14 -0)
</details>
### 📄 Description
Resolves #245
# Summary
- On page load, check for hash in window location and update input with hash value if present.
- NOTE: This doesn't implement the same value regex test that `?u=url` implementation does.
## Implementation drawbacks to consider
- If Cobalt happens to use hash values later on (i.e. navigating to an open settings page or specific point in changelog), this would need to be revised to handle those cases.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/imputnet/cobalt/pull/246
Author: @jojobii-arks
Created: 11/13/2023
Status: ❌ Closed
Base:
current← Head:jojobii-arks/245-hash-prefill📝 Commits (1)
d546569feat: input prefill with location hash📊 Changes
1 file changed (+14 additions, -0 deletions)
View changed files
📝
src/front/cobalt.js(+14 -0)📄 Description
Resolves #245
Summary
?u=urlimplementation does.Implementation drawbacks to consider
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.