openlab-at-city-tech / webworkqa

WeBWorK integration for WordPress and BuddyPress
GNU General Public License v2.0
4 stars 2 forks source link

Clicking on 'Respond to this Question' leads to 404 #209

Closed bree-z closed 3 years ago

bree-z commented 3 years ago

When I click on 'Respond to this Question' as a non-authenticated user, I get a 404 error rather than being prompted to log in. The URL of the 404 is: https://hardg.com/webwork/webwork/wp-login.php?redirect_to=/webwork/#:problemId=CUNY/CityTech/Precalculus/setDifference_Quotient/intro-diff-quot.pg:questionId=31

This happens both from the list and single views.

boonebgorges commented 3 years ago

@drdrew42 It sounds like the configuration on your end is adding an extra /webwork/. Can you take that out?

bree-z commented 3 years ago

Just wanted to ping this, as it's still an issue on hardg.com/webwork.

Thanks!

drdrew42 commented 3 years ago

Ive got the url set to https://hardg.com/webwork/?webwork=1 is that not correct?

boonebgorges commented 3 years ago

@bree-z Can you please share a link to a WW problem exhibiting the problem so that I can do some testing?

bree-z commented 3 years ago

Sure. It happens for any problem when I click on 'Respond to this Question' when not logged in. Here are some examples:

Problem: https://hardg.com/webwork/#:problemId=CUNY/CityTech/Precalculus/setPolynomial_Division/long-division-monic-linear-rem.pg:questionId=89 404 URL: https://hardg.com/webwork/webwork/wp-login.php?redirect_to=/webwork/#:problemId=CUNY/CityTech/Precalculus/setPolynomial_Division/long-division-monic-linear-rem.pg:questionId=89

Problem: https://hardg.com/webwork/#:problemId=Library/NAU/setTrigOtherFunctions/OtherPer.pg:questionId=85 404 URL: https://hardg.com/webwork/webwork/wp-login.php?redirect_to=/webwork/#:problemId=Library/NAU/setTrigOtherFunctions/OtherPer.pg:questionId=85

boonebgorges commented 3 years ago

@bree-z Can you please link to the WeBWorK problem where you're originating so that I can test the entire flow?

boonebgorges commented 3 years ago

(For reference, I just tried from this URL http://146.111.135.122/webwork2/WW-Dev/Polynomials_-_Division/1/ and it worked properly. Maybe we're using different WW installations?)

bree-z commented 3 years ago

Sorry, I think I may have been unclear, and was using 'problem' when I should have said 'question'. When I encounter this issue, I'm starting from https://hardg.com/webwork/, not the WeBWorK site. Here's what I did:

Screen Shot 2021-09-21 at 10 57 38 AM

When I first created this ticket, I was testing this:

For non-authenticated users, Respond link leads to login page; after login, you're led to question in Single view.

It was added to the testing spreadsheet after #150.

Thanks!

boonebgorges commented 3 years ago

Thanks for clarifying. I guess I didn't read your initial question clearly enough.

I've put a fix in place for this.

bree-z commented 3 years ago

Thanks Boone. This looks good!

I'm now prompted to log in, and after logging in I'm taken to the question page.