Skip to content

Deep Linking for WPGraphQL Settings pages #3142

@jasonbahl

Description

@jasonbahl

What problem does this address?

The WPGraphQL Settings page allows for settings to be separated into tabs. (Plugins like WPGraphQL for WooCommerce and others leverage this feature).

I would like to be able to provide links directly to a specific tab. i.e. /wp-admin/admin.php?page=graphql-settings&group=${name_of_setting_group} that would allow the settings page to be linked to with a specific tab already in focus.

What is your proposed solution?

I propose that the tabs push state to the URL and load state from the URL using a query param such as "group" or similar.

This would allow for "deep linking" to the tabbed pages of the WPGraphQL Settings page.

What alternatives have you considered?

No response

Additional Context

The WPGraphQL IDE that is being re-architected over here: https://github.com/wp-graphql/wpgraphql-ide will be merged into WPGraphQL core in the future and we want to be able to guide folks through setting up the new IDE by providing a link directly to the new IDE settings page.

Metadata

Metadata

Assignees

Labels

type: enhancementImprovements to existing functionality

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions