fix(parser): ListPagesのtags@URLで/tag URLを解決する#53
Merged
Conversation
ListPagesのURL解決で、tags属性が通常の/tags/... に加えてWikidotのsystem:page-tagsでdefaultで使用されるである/tag/...も参照できるようにした。 URL parserはURL上のパラメータ名をそのまま保持し、tags側のURL別名としてtagを URL_RESOLVABLE_FIELDSに定義する。これによりparams.tsにtag固有の変換処理を置かず、URL解決の責務をfieldsとresolverに寄せる。 あわせて/tag/<tag>と後続パラメータ付きのURL解析、tags="@url"からの解決をテストで追加した。
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
wdpr-demo-v1 | ecd482e | Commit Preview URL Branch Preview URL |
Jun 27 2026, 12:12 PM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
wdpr-demo-v1-files | ecd482e | Commit Preview URL Branch Preview URL |
Jun 27 2026, 12:12 PM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
decompiler-preview | ecd482e | Commit Preview URL Branch Preview URL |
Jun 27 2026, 12:12 PM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
ListPagesの
tags="@URL"で、通常の/tags/...に加えてWikidotのタグ一覧URLである/tag/...も解決できるようにしました。変更内容
URL_RESOLVABLE_FIELDSのtagsにURL側の別名としてtagを追加parseUrlParamsが先頭のURLパラメータも読めるようにし、/tag/<tag>形式を解析可能に変更resolveUrlValueが複数のURLパラメータ候補を順に参照できるように変更/tag/<tag>と後続パラメータ付きURL、tags="@URL"からの解決をテストに追加