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

Redirected pages still appear as local URL in entry context #571

Open
fluffy-critter opened this issue Jun 24, 2024 · 1 comment
Open

Redirected pages still appear as local URL in entry context #571

fluffy-critter opened this issue Jun 24, 2024 · 1 comment
Labels
bug Something isn't working html Issues pertaining to HTML handling markdown Functionality involving the Markdown processor

Comments

@fluffy-critter
Copy link
Collaborator

Expected Behavior

An entry like:

Title: foobar
Entry-ID: 12345
Redirect-To: https://example.com/foobar

should always be linked to as https://example.com/foobar

Current Behavior

In a Page context, it links to https://example.com/foobar but in an Entry context it links to /12345-foobar (or whatever the Path-Canonical is set to)

Context

It's possible the Page context is only working because of something in my site templates; it's using entry.link. It's possible that the entry processor might be using entry.permalink or something.

@fluffy-critter fluffy-critter added bug Something isn't working html Issues pertaining to HTML handling markdown Functionality involving the Markdown processor labels Jun 24, 2024
@fluffy-critter
Copy link
Collaborator Author

Following up on this, the difference is between entry.link and entry.permalink. The latter should probably be preferred.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working html Issues pertaining to HTML handling markdown Functionality involving the Markdown processor
Projects
None yet
Development

No branches or pull requests

1 participant