Issue with component and nginx url rewrite

More
3 years 3 months ago #45163 by matt@rocketlaunch.co.za
I am running the latest Joomla build on the latest NGINX build. I have both SEF urls and URL rewrite enabled and the correct rules in the NGINX config.

When you click on the purchase and pay button nothing happens, on further examination in the web console the URL is giving a 404. If you disable URL rewriting in Joomla everything works as expected.

Therefore I suggest there is an error in the base URL handling code of the component.

Any suggestions?

Please Log in or Create an account to join the conversation.

More
3 years 2 months ago #45178 by matt@rocketlaunch.co.za
For anyone else experiencing this issue:

Find the file com_crypto2points/media/js/pack.js

On line 4 simply add a forward slash to the beginning of the URL:
so:

url: 'index.php?option=com_crypto2points&task=createCharge&format=raw',

becomes:

url: '/index.php?option=com_crypto2points&task=createCharge&format=raw',

simple!

Please Log in or Create an account to join the conversation.

Time to create page: 0.318 seconds
Powered by Kunena Forum
Disclaimer: Nordmograph is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.