-
Notifications
You must be signed in to change notification settings - Fork 23
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
Link to the podcast category in single podcast. #330
Link to the podcast category in single podcast. #330
Conversation
Unfortunately that's a shortcoming of FSE. #57 has some background info We've used relative URLs in a few places, but IIRC that only works on the homepage: Line 25 in 8f7886f
I think in this case hardcoding the production URL is the least-bad option, unless someone else knows of a better way? |
Podcasts isn't actually a category, or else we could use |
While that would work conceptually in the template, it's not really a block - I don't know how that would work in an editor, for example. (edit: unless I'm misunderstanding how it would work) |
Yeah, it would probably break "block" conventions. I'm concerned that creating a Maybe thinking about this from a template first perspective is wrong? Maybe content with links should be done in the content/editor anyways. I'm behind on the localization conversation, but I imagine its a similar problem? |
I see it as analogous to the
This particular link isn't in the Episode CPT, it's in the template itself. We haven't been using the site editor (it's currently broken, in fact #95). If we update the template in the site editor, we're basically forking it, and that template won't get any new code updates (there's an issue in GB about this: WordPress/gutenberg#22469). So unfortunately I don't think that's viable with the setup we have right now. |
Ah that's right. Thanks for mentioning that? I'm not opposed to the |
I don't see |
Will be replaced by #361 |
This PR links the
Podcast
text to the/news/podcast
URL. This is not a great approach especially becausenews
is hard coded and our local dev doesn't serve out of a subfolder.I'm getting this PR early to discuss the best approach. Is there a better way to link to urls in HTML templates?