Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

chore(svelte): Properly route to revision agnostic pages#63444

Merged
fkling merged 2 commits into
mainfrom
fkling-srch-600
Jun 26, 2024
Merged

chore(svelte): Properly route to revision agnostic pages#63444
fkling merged 2 commits into
mainfrom
fkling-srch-600

Conversation

@fkling

@fkling fkling commented Jun 24, 2024

Copy link
Copy Markdown
Contributor

There are two kinds of repository pages: Those who depend on the revision possibly present in the URL and those who are not.

This commit re-arranges the routes to better distinguish between these two types. It also adds a visual indication to the commits that the history at a specific revision is shown. Additionally it removes the revision from links to revision agnostic pages.

Overall this should make it clearer to the user when and when not the revision in the URL is relevant.

Note: I originally added a redirect for revision agnostic pages that
would remove the revision if it was present in the URL. I decided to
not do that for now because that redirect introduces an additional
history entry which makes it difficult to navigate back.

2024-06-24_14-01

Closes srch-600

Test plan

Manual testing.

@fkling fkling requested a review from a team June 24, 2024 12:28
@fkling fkling self-assigned this Jun 24, 2024
@cla-bot cla-bot Bot added the cla-signed label Jun 24, 2024
@fkling fkling force-pushed the fkling-srch-600 branch from 3232e48 to e09afb5 Compare June 24, 2024 12:29
There are two kinds of repository pages: Those who depend on the
revision possibly present in the URL and those who are not.

This commit re-arranges the routes to better distinguish between these
two types. It also adds a visual indication to the commits that the
history at a specific revision is shown. Additionally it removes the
revision from links to revision agnostic pages.

Overall this should make it clearer to the user when and when not the
revision in the URL is relevant.

 Note: I originally added a redirect for revision agnostic pages that
 would remove the revision if it was present in the URL. I decided to
 not do that for now because that redirect introduces an additional
 history entry which makes it difficult to navigate back.
@fkling fkling force-pushed the fkling-srch-600 branch from e09afb5 to b25ea56 Compare June 24, 2024 12:32
@fkling fkling enabled auto-merge (squash) June 26, 2024 12:36
@fkling fkling merged commit 70ba49e into main Jun 26, 2024
@fkling fkling deleted the fkling-srch-600 branch June 26, 2024 12:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants