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

[AdminBundle] fix regex to check if admin preview #1182

Merged
merged 2 commits into from
Jun 1, 2016
Merged

[AdminBundle] fix regex to check if admin preview #1182

merged 2 commits into from
Jun 1, 2016

Conversation

bakie
Copy link
Contributor

@bakie bakie commented Jun 1, 2016

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets /

I extended the admin/preview check. The check to see if the url contains /admin/preview was not working if you have a preview route like /admin/project/preview

@jockri jockri merged commit a08a603 into Kunstmaan:master Jun 1, 2016
@jockri jockri added this to the 3.5.2 milestone Jun 1, 2016
jockri pushed a commit that referenced this pull request Jun 1, 2016
* master:
  Video thumbnail fix (#1179)
  [AdminBundle] fix regex to check if admin preview (#1182)
  Fix adminlist SimpleItemAction template
  [AdminListBundle] Updated list template to use an icon for the View link
  Fix translation (#1177)
  [AdminBundle] OAuthUserCreator Should query on username and email (#1154)
  [All bundle] Translation fixes (#1172)
  Added `update ACL command` to update specific role with given permission(s) for all nodes
  [ArticleBundle] Added ability to select which overview page to add an article page to (#1160)
@mlebkowski
Copy link
Contributor

And what if you have a different route altogether? This seems like an ugly hack.

Wouldn’t it be better to mark admin routes with a request parameter for an instance?

@bakie bakie deleted the hotfix/admin_locale_preview branch June 29, 2016 06:36
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

3 participants