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

Checkboxes doesn't check #1

Closed
creazy231 opened this issue Jul 10, 2020 · 4 comments
Closed

Checkboxes doesn't check #1

creazy231 opened this issue Jul 10, 2020 · 4 comments

Comments

@creazy231
Copy link

creazy231 commented Jul 10, 2020

At first I want to say thank you for creating this repo, so we don't have to wait for the official strapi plugin :)

Everything seems to work fine but when I want to check the different collection types, the checkbox doesn't work.

image

If I click the checkbox once, it works (even without the checked icon) but I'm not able to uncheck the checkbox.

Edit:
If I run yarn develop --watch-admin checkboxes are working on http://localhost:8000/admin/

Edit2:
For some reason the response of http://localhost:1337/admin-accesses?role=author is an empty default strapi backend page (no content, only left sidebar) and when I'm using yarn develop --watch-admin the response is a correct json response.
Am I doing something wrong?

@creazy231
Copy link
Author

I've found a workaround:

Just go to your <project>/config/server.js and change the admin url like so:

module.exports = ({env}) => ({
	host: env('HOST', '0.0.0.0'),
	port: env.int('PORT', 1337),
	admin: {
		url: '/settings'
	}
});

@surgeharb
Copy link
Owner

Hello @creazy231,
Sorry for the late reply, wasn't available the past few days.

Thank you for submitting the issue, I will look it up asap!

@surgeharb
Copy link
Owner

@creazy231 the thing is that I tested the plugin on a Strapi instance where I have the following:

module.exports = ({ env }) => ({
  host: env('HOST', '0.0.0.0'),
  port: env.int('PORT', 1337),
  admin: {
    url: '/dashboard'
  }
});

As you notice any url that is not /admin (which is the default path for Strapi dashboard) works fine.
Because Strapi check for similar paths and redirects http://localhost:1337/admin-accesses?role=author to http://localhost:1337/admin as it has similar prefix.

A fix for this could be changing the url to /dashboard.

@surgeharb
Copy link
Owner

Just pushed the recommended <project>/config/server.js admin url

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

No branches or pull requests

2 participants