Solve the problem of repeating the siteview name twice by the router's build method
#759
Merged
saman222
merged 1 commits from staging
into staging
2 years ago
Loading…
Reference in New Issue
There is no content yet.
Delete Branch 'staging'
Deleting a branch is permanent. It CANNOT be undone. Continue?
when we build link with ID and without Itemid, router's build method repeats siteview name twice in 'SEF' situation.
like:
mysite.com/index.php/component/componentname/siteviewname/siteviewname/id
After our last JUG meeting we had a conversation to refactor the router in JCB, you should join the working group ;)
We would like to move JCB to the new router implementation seen here in action, as this will help moving JCB to Joomla 4.
Hey @saman222,
May you please provide a more detailed step by step process on how to replicate this for testing?
hi @ohrionmartin
suppose there is a site view called courseDetail and in this site view we want to enter another site view through the link given by the following command
JRoute :: _ (index.php?Option=com_moojla&view=teacherDetail&id=452)
in this case , by turning on SEF URL's we expect the following link to be generated for us to transfer to teacherDetail site view
www.example.com/index.ph/fa/component/moojla/teacherdetail/452
but the link produced is as follow
www.example.com/index.ph/fa/component/moojla/teacherdetail/teacherdetail/452
picture 1 :

picture 2 :

excuse me can you say is my commit approved ? if yes why https://github.com/vdm-io/Joomla-Component-Builder/blob/staging/admin/compiler/joomla_3/router.php not changed?
Reviewers
576eac1a5a
.Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.