Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSTEAM1-705: Link to post using post asset ID as hashparam (Spike) #11418

Draft
wants to merge 3 commits into
base: latest
Choose a base branch
from

Conversation

Isabella-Mitchell
Copy link
Contributor

@Isabella-Mitchell Isabella-Mitchell commented Mar 22, 2024

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: #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

  1. List the steps used to test this PR.

Helpful Links

Add Links to useful resources related to this PR if applicable.

Coding Standards

Repository use guidelines

@Isabella-Mitchell Isabella-Mitchell changed the title WSTEAM1-705: Solution using post asset ID as hashparam WSTEAM1-705: Link to post using post asset ID as hashparam (Spike) Mar 22, 2024
};

const LivePage = ({ pageData }: ComponentProps) => {
const FakeKeyPointLinks = () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this 🙃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant