How to redirect to an Entry Point in SuiteCRM 8.8?

Hello, I’m making a button that, when clicked, will redirect you to a custom page to print a document. I already have the page assigned to an entrypoint:

example.com/public/index.php?entryPoint=MyTimeEntryPoint

The problem is, the button I have is redirecting to this:

example.com/public/#/index.php?entryPoint=MyTimeEntryPoint

No matter what method i use to redirect, i can’t get rid of the # in the url. Anyone knows how to fix this? Or a different way to make a custom page with its url? thanks

Hi, welcome to the Community! :tada:

The # in the URL is not your problem.

The public is. If your server was correctly configured for SuiteCRM v8, you would not be seeing that word in your URLs. Fix that first and the legacy entry-points should work fine.

Review the installation instructions regarding web root and mod_rewrite.

Thanks I’ll do that and see how it goes.

Didn’t work. Got rid of the public but the # is still there. The redirect still doesn’t work.

Thanks. I guess i should be modifying the .htaccess file to redirect without the # but now i don’t know what i have to change.

@rsp, this is not about API…

@decheverri try adding legacy to both your definition and the URL

$entry_point_registry['<MY_ENTRYPOINT>'] = array(
'file' => 'legacy/custom/  ....   .php',
...

example.com/legacy/index.php?entryPoint=MyTimeEntryPoint

Still doesn’t work. adding it to the file or the url doesn’t seem to change how it works.

Does the rest of SuiteCRM work properly?

Including legacy modules such as Events?

Everything seems to work as far as i see. Created a new event and it all seems to be fine.

Make sure you have correct file permissions set.


You need to run Quick Repair and Rebuild :hammer_and_wrench: from the admin menu.

I’m working on Windows 10. Could file permissions be an issue here?

I do not have idea about windows 10. It works well with Linux :desktop_computer: based OS.

I think the windows OS do not follow the permissions thing.

So far i haven’t had to do anything related to permissions to make anything work so i suppose it’s not an issue.

From your other posts, I gather that you want to produce a view from this entry-point, but that is not what custom entrypoints are in SuiteCRM. So maybe it is working, the URL gets called and your code gets called, only it doesn’t work to produce a view (and never will)…

Not really, i want to have a page where i can put some html/css, maybe javascript too.

That is what I mean by “producing a view”, you want to send back a page to be displayed to the user.

Think of entry-points as

  • fetching a bit of data from the back-end
  • telling the back-end controller to execute an action in the back-end.

So - they’re really not meant to navigate the user to a new front-end page.