Skip to content

Fixing links throughout Egoweb, initially admin/index.php and navigation bar #22

@fredson

Description

@fredson

Dear all!

I patched two files - views/layouts/main.php and views/admin/index.php -, replacing hardcoded subdirs to dynamic generation by Yii (patch attached).

That way, I could fix the links in the nav-bar and on the admin page to point to e.g. www.university.de/~foo/mystudy/importExport (as intended) instead of www.university.de/importExport (as it was after initially installing the master branch).

I did try to solve that issue with .htaccess, but any solution on that level would have been idiosyncratic and - honestly - I hate messing around with rewrite rules.

I would appreciate your feedback regarding whether that seems to be a sound fix and if it's worth being merged with master. It may be, that this still only relevant for my use case - I'm not sure.

For that - and for everything to work on my university's shared webspace - I spotted another 15 hardcoded subdirs, that than would have to be recoded. Most problably I will have to do that anyway, therefore I could than request a pull (see the attached hrefego.txt).

If you have any thoughts on that, I of course would love to hear from you. I am absolutely not an expert regarding Yii, so every comment is highly appreciated.

Finally, thank you very much for all the effort; we started using EgoWeb2.0 now for a survey on urban flood management and find it to be very helpful. It could easily become a focal tool for a whole bunch of resarch projects in our field over the next decade.

linkpatch.txt

hrefego.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions