-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Comments: Update post title link to point at post permalink #15935
Comments
Currently, the comment data we receive from an API call to There are a few ways to handle this, I'm not sure which is best.
I'm thinking #2 is the best way to go about this; it takes the data we're getting from the API, and shapes it into what we need before saving it to our state. It seems like I would add the additional work here, but that looks suspicious and hacky, with the other handlers looking more simple; am I missing something? |
Am I missing something or is this not easy? If we have the |
Bad approach, but still, just wanted to point out that we'd also need to strip the E.g. a post URL in one of my test sites: |
Maybe it's easy for you, but it isn't clear for me; that's why I'm asking for guidance.
We do have that post ID (and the site ID), but looking in state, that full post is not available anywhere I can see. (Not sure what you mean by the Reader view – why would the Reader be concerned about a user's post with comments on it? Are a user's posts supposed to be represented in I guess my main questions are:
|
@kwight please don't let me sound like I'm talking down to you. I don't know the context of the problem so that's why I ask.
I should say that my interpretation of the issue description is that we have a link in the comment to the parent post and when we click on that we want to take the user to the post itself. If that's our goal then all we need are It won't matter if the post is in state already, which is the beauty of how our approach with Redux and declarative data dependencies work. Once that page renders it will load in the post. This is where I was curious about the difficulty because if we would like to direct people to a Calypso view then the functionality is already there and we need perform no string operations. |
Dennis brings up a good point. I assumed we would just link to the external site, but we should probably link to the Reader post view. It's hard to know what the user expects or what we want them to expect, when it comes to either linking to the site or Calypso. |
Ah! Now I understand what you meant about the Reader; right, that makes sense. I had assumed like @drw158 that we were talking about an external link, but it sounds like we all agree a Reader view would be better, eg. |
Currently it links to the comment permalink ("blog.blog/post/comment-page-1/#comment-123"), which is the only post url available. We should update this to point at the post permalink instead eg
blog.blog/post/
cc/ @Automattic/lannister
The text was updated successfully, but these errors were encountered: