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

Rename sulu_content_path in sulu_content_url #5278

Draft
wants to merge 1 commit into
base: 2.5
Choose a base branch
from

Conversation

alexander-schranz
Copy link
Member

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets fixes -
Related issues/PRs -
License MIT
Documentation PR -

What's in this PR?

Explain the contents of the PR.

Why?

Since sulu 1.2 the sulu_content_path does return the full url. To be similar to Symfony Url Twig Extension which does also return the full path I would rename the function to _url instead of _path.

To Do

  • Create a documentation PR
  • Add breaking changes to UPGRADE.md

@danrot
Copy link
Contributor

danrot commented Jun 8, 2020

TBH, I am a bit reluctant to that change... Are we sure that we want to keep a function like this, and not use the internal Symfony url or path methods in some way? Changing that now just for cosmetic reasons seems a little bit tedious for developers using it, if we might change that behavior again later.

@alexander-schranz alexander-schranz changed the base branch from master to 2.x January 7, 2021 15:49
@alexander-schranz alexander-schranz added the DX Affecting the end developer label Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DX Affecting the end developer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants