Add parameter to url

Hi, I was wondering if it is possible to add parameters to article urls, for example:

http://site/JOURNAL/article/view/1?title=article-title

If it is possible, where exactly I can make those changes?

My OJS version is 3.1.0.1

Hi @JuanNieto,

You can start by creating a generic plugin: Plugin Categories - Plugin Guide for OJS and OMP

I’d call a Request object $this->getRequest(), determine URL parameter that is needed, e.g. $this->getRequest()->getQueryString() and do what is needed if it’s expected query. You may use hooks to interact with OJS code at different levels, e.g. it’s possible to interact with a controller (handler) of article landing page through ArticleHandler::view hook. Or you can add own handler. Anyway, I’d recommend reading the documentation for developers first.

1 Like