Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

問題詳細ページのURL設計を治す #709

Open
uplus opened this issue Aug 1, 2020 · 0 comments
Open

問題詳細ページのURL設計を治す #709

uplus opened this issue Aug 1, 2020 · 0 comments

Comments

@uplus
Copy link
Member

uplus commented Aug 1, 2020

解答を見ているときは #answers で質問は #issues になる
staffは複数チームの解答や質問を見るのでteamIdを取る必要がある。

現在の実装はページのライフサイクルやnull,undefinedの扱いがとても複雑なのでどうにかするのが目的。

現状

staffとaudience
http://localhost:8901/problems/3e2c98fc-f21a-47db-9287-3e727910f042#answers=5bb64cb0-b302-43f2-bce3-ab4048bb453a

player
http://localhost:8901/problems/3e2c98fc-f21a-47db-9287-3e727910f042#answers

改修後

staffとaudience
http://localhost:8901/problems/3e2c98fc-f21a-47db-9287-3e727910f042?mode=answers&teamId=5bb64cb0-b302-43f2-bce3-ab4048bb453a

player
http://localhost:8901/problems/3e2c98fc-f21a-47db-9287-3e727910f042?mode=answers

補足

現状はtailHashを使って表現してるが、本来の使い方じゃない。
tailHashで表現しているものをquery paramsで書き直して、tailHashは本来の使い方であるアンカーとして使えるようにしたい。
具体的には解答一覧ページや質問一覧ページから特定の解答に直接飛ぶなど。

このIssueではtailHashをquery paramsに置き換えるまでが対象。

@uplus uplus added this to 検討 in Next via automation Aug 1, 2020
@uplus uplus moved this from 検討 to やるかも in Next Nov 5, 2020
@uplus uplus moved this from やるかも to やる in Next Dec 31, 2020
@uplus uplus moved this from やる to やるかも in Next Mar 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Next
  
やるかも
Development

No branches or pull requests

1 participant