humanmade / humanmade/hm-redirects

Redirecting to a destination with state

Open
#71 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
29
Forks
10
PR merge metrics
No merged PRs in 30d

Description

I'm looking at the plugin and hit what seems to be the perennial issue.

if you setup a redirect from `/a` to `/b` , after creation you can add a querystring and hash to the url and it will be appended to the redirect. Great so far. (`/a?tab=2#myheading` redirects to `/b?tab=2#myheading`)

However if you say want to redirect to a destination containing a hardcoded querystring/hash then that's not possible as it gets stripped from the redirect on save. (from `/a` to `/b?tab=2#myheading`.

The use case is publishing a short url in print and it loading say a page with certain state. Another usecase is a redirect to a javascript app that handles internal state.

I might be able to have time to look at this. Is it desired, or have people solved this another way?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the redirect setup described in the issue: save a destination containing a query string and hash, then inspect the resulting redirect. Trace the plugin's destination-save and redirect-handling paths, and confirm completion when hardcoded destination state is preserved without breaking appended query strings or hashes.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.