simorgh
simorgh copied to clipboard
WSTEAM1-705: Link to post using post asset ID as hashparam (Spike)
Resolves JIRA SPIKE [WSTEAM1-705]
Overall changes
Following discussions of how suitable the PS approach (using a ‘Back to Latest’ link) is for WS - I wanted to make a version which did not use this.
Instead the post asset ID is used as the hash param to take the user’s focus to the shared post.
(This PR uses server side rendering and is a cleaner version of a previous PR: https://github.com/bbc/simorgh/pull/11260. It utilises the same BFF PR as before).
Here is an example of a shared link:
Local: http://localhost:7081/pidgin/live/c07zr0zwjnnt?renderer_env=test&post=asset%3A3b133574-88dc-41e0-9d90-0d3e847adba3#asset:3b133574-88dc-41e0-9d90-0d3e847adba3
Live equivalent: https://bbc.com/pidgin/live/c07zr0zwjnnt?post=asset%3A3b133574-88dc-41e0-9d90-0d3e847adba3#asset:3b133574-88dc-41e0-9d90-0d3e847adba3
The link is structured as Domain + post asset query (to take to the correct page) + post asset hash param (to take to the correct post)
On local there is a renderer env query is also required.
Code changes
- A bullet point list of key code changes that have been made.
Testing
- List the steps used to test this PR.
Helpful Links
Add Links to useful resources related to this PR if applicable.