Hi everyone

I have a code that generates page links based on the specified names in a
list. That block of code looks like this


                                <t:pagelink t:page="${subPage.firstValue}"
t:context="[subPage.secondValue]">
                                    ${pageName}
                                    <t:if t:test="pageNotNum">
                                        <span
class='badge'>${pageNotNum}</span>
                                    </t:if>
                                </t:pagelink>

The subPage.secondValue on occasions has an id that should be used on other
occasions it doesn't (i.e. some pages require context and others dont). Due
to this I am seeing ugly URLs like

http://localhost:8080/todolist/$N

Is it possible to somehow omit $N value?

The only thing I can think if is to have 2 blocks of code with only
differences in the context parameter. However that would be redundant in my
mind and I would like to avoid it if possible.
So is it?

Thanks

-- 
Sincerely
*Boris Horvat*

Reply via email to