hackforla / website

Hack for LA's website
https://www.hackforla.org
GNU General Public License v2.0
324 stars 768 forks source link

ER: Toolkit Link Fix #6919

Open ramitaarora opened 5 months ago

ramitaarora commented 5 months ago

Emergent Requirement - Problem

In the branch feature-homepage-launch, when trying to navigate to /toolkit/ or any of the associated navigation links, the link is replaced with /toolkit/?.

Issue you discovered this emergent requirement in

Date discovered

May 23, 2024

Did you have to do something temporarily

Who was involved

@ramitaarora @roslynwythe

What happens if this is not addressed

The link will redirect to the Toolkit Page, but none of the anchor links will work.

Resources

_data/navigation/toolkit.yml pages/toolkit.html _includes/current-guides.html assets/js/toolkit.js

Recommended Action Items

Potential solutions [draft]

Fix any redirections in toolkit.js file on the gh-pages branch.

github-actions[bot] commented 5 months ago

Hi @ramitaarora.

Please don't forget to add the proper labels to this issue. Currently, the labels for the following are missing:

NOTE: Please ignore this comment if you do not have 'write' access to this directory.

To add a label, take a look at Github's documentation here.

Also, don't forget to remove the "missing labels" afterwards. To remove a label, the process is similar to adding a label, but you select a currently added label to remove it.

After the proper labels are added, the merge team will review the issue and add a "Ready for Prioritization" label once it is ready for prioritization.

Additional Resources:

roslynwythe commented 5 months ago

Thank you @ramitaarora for writing this ER.

@ExperimentsInHonesty I think this ER is ready, but I have a question. The issue with redirection on the toolkit page was discovered in the feature-homepage-launch branch in the context of adding named anchors for the dropdown menu, but it also exists in the `gh-pages' branch. Which branch should we target in the new issue?

ExperimentsInHonesty commented 4 months ago

@roslynwythe we will fix it in the gh-pages branch and then when the homepage branch is updated next, it will get the update as well. Jessica has been doing the updates.

8alpreet commented 1 week ago

Hi,

I've looked a bit into this issue and found that the '?' & anchor hashes are related but separate.

'?'

The '?' is added because line 261 in assets/js/toolkit.js appends a '?' to path even if there are no filters.

Anchor Hashes

Currently there is no logic to handle hashes within the function which contains line 261. The code does not take the hash portion of the URL into account and simply updated the location.

Path Forward:

For the '?' issue , I've drafted an issue #7636. For the anchor hashes, we would need to create a separate issue. I'm not sure if certain steps are involved in doing that or if I can simply create the issue.

HackforLABot commented 5 days ago

Hi @8alpreet, thank you for taking up this issue! Hfla appreciates you :)

Do let fellow developers know about your:- i. Availability: (When are you available to work on the issue/answer questions other programmers might have about your issue?) ii. ETA: (When do you expect this issue to be completed?)

You're awesome!

P.S. - You may not take up another issue until this issue gets merged (or closed). Thanks again :)

8alpreet commented 5 days ago

Availability

Weekdays 3-7 p.m. PT

ETA

Oct 29, 2024 by 9:00 p.m. PT

Status

  1. Needs two issues:
    • Issue #7636 created (in progress)
    • Second issue pending creation

Next steps

8alpreet commented 3 days ago

Updated ETA

Oct 30, 2024 by 9:00 p.m. PT

8alpreet commented 2 days ago

Hi merge team, I have created the following issues: #7636 & #7668