mesa icon indicating copy to clipboard operation
mesa copied to clipboard

Redirect Link is not working on home page

Open creativechirag26 opened this issue 1 year ago • 3 comments

On clicking Visualisation tutorial option in header, it redirects to correct page, but on clicking on "Visulation Tutorial" in the home page documentation (https://mesa.readthedocs.io/en/latest/#tutorials/intro_tutorial.html), it doesn't redirect.

On clicking "Visulisation Tutorial" it should have redirected to (https://mesa.readthedocs.io/en/latest/tutorials/visualization_tutorial.html) but it didn't. Screenshot from 2024-08-24 18-29-54

creativechirag26 avatar Aug 24 '24 13:08 creativechirag26

It seems to be working in Mesa-Geo RTD. @wang-boyu what did you do make it work?

rht avatar Aug 24 '24 13:08 rht

But its not working on the specific page I mentioned.

creativechirag26 avatar Aug 24 '24 16:08 creativechirag26

It's probably because the cross-references didn't work: https://github.com/projectmesa/mesa/blob/a48dd80a6ce424638e78ae962225d099551dfe46/docs/index.md?plain=1#L101-L102

Mesa-Geo uses absolute url for redirection. But I think it's better to fix the cross-reference issue.

wang-boyu avatar Aug 25 '24 07:08 wang-boyu

Thanks for reporting!

Can we use the solution used in Mesa-Geo?

EwoutH avatar Sep 03 '24 15:09 EwoutH

Can we use the solution used in Mesa-Geo?

Not feasible because absolute URL also hardcodes the latest/stable branch in it.

rht avatar Sep 04 '24 07:09 rht

@creativechirag26 I think I found a fix. Could you confirm that https://github.com/projectmesa/mesa/pull/2274 solves this issue for you?

EwoutH avatar Sep 04 '24 07:09 EwoutH

Yes, it works now @EwoutH

creativechirag26 avatar Sep 04 '24 08:09 creativechirag26